Back to discussionComment by messe[-]messe7 years ago1 reply#Not only that but in python 3.8, it can be written: def factorial(n): return math.prod(range(1,n+1))estomagordo7 years ago#Nice!
messe7 years ago1 reply#Not only that but in python 3.8, it can be written: def factorial(n): return math.prod(range(1,n+1))