📅  最后修改于: 2022-03-11 14:45:57.503000             🧑  作者: Mango
This is a recursive function that finds the factorial of an interger.
def factorial(x):
to find the factorial of an integer
if x == 1:
return 1
else:
result = x * factorial(x-1)
return ()