def fact(num):
if num==1:
return 1
else:
return num*fact(num-1)
print(fact(int(input("Please enter the number : "))))

def fact(num):
if num==1:
return 1
else:
return num*fact(num-1)
print(fact(int(input("Please enter the number : "))))