Predict the output of the following code:
def Factorial (N) :
if N == 0 or N == 1:
return 1
else:
return N * Factorial (N-1)
X = 5
Y = Factorial (X)
print(Y)
X = Factorial (X-2)
print(X, end='?')
Answer:
Answer by student
120
6?
Detailed answer by teachoo
The rest of the post is locked. Join Teachoo Black to see the full post.