#4i: Coding in python:{FACTORIAL FINDER}
#factorial_finder
def pro(a,b):
return a*b
x=int(input("Enter number: "))
z=[]
for t in range(1,x+1):
z.append(t)
fact=reduce(pro,z)
print('Factorial of ',x,' is ',fact,'.')
Download CODES here.
For online Python CLICK Here.
Comments