I have the following code that outputs 6,720. However after looking at the code I have no idea how the 720 is being gotten.
def f(n):
if (n==0):
return 1
else:
v = f(n-1)
r = n * v
return r
n = 6
print(n, f(n))
1 Answer