Aug-01-2017, 08:16 PM
(Aug-01-2017, 08:08 PM)nilamo Wrote: This is two months old, so sure, let's throw answers around.
import functools fact = int(input("What number to factorial? ")) print(functools.reduce(lambda x, y: x*y, range(1, fact+1)))
Although I have no idea what that means, it looks very cool and is probably the fastest way to find out the factorial of N