0
def factorial(x): if x == 1: return 1 else: return x * factorial(x-1) print(factorial(5))
Can anybody tell me how is 120 answer
4 Answers
+ 1
šš¢š¢ššØ šš”šš²šš„ You are right that could be made shorter by giving the math definition here. I have simplified it for me, because it was already described at the beginning of my code. A little advertising is a must.
0
An example if you like will be provided i.e. by me.