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 Respostas
+ 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.