from functools import reduce
n=int(input("Enter number fot which you want factorial"))
result= reduce(lambda x,y:x*y,[n for n in range(1,n+1)])
print(result)

e026b8b17058541be6199318b7a3c74a5945a58a
<mask token>

<mask token>
print(result)

<mask token>
n = int(input('Enter number fot which you want factorial'))
result = reduce(lambda x, y: x * y, [n for n in range(1, n + 1)])
print(result)

from functools import reduce
n = int(input('Enter number fot which you want factorial'))
result = reduce(lambda x, y: x * y, [n for n in range(1, n + 1)])
print(result)

from functools import reduce
n=int(input("Enter number fot which you want factorial"))
result= reduce(lambda x,y:x*y,[n for n in range(1,n+1)])
print(result)
