Given a number ‘n’, output its factorial using reduce().
Note: Make sure you handle the edge case of zero. As you know, 0! = 1
from functools import reduce
n = int(input())
f = reduce(lambda n : n * (n - 1) if n > 1 else n)
print(f)
Also, I need help with this type error mentioned below
TypeError: reduce expected at least 2 arguments, got 1