0
python recursion factorial
# cook your dish here def fact(z): if z==1: return 1 else: return z*fact(z-1) for i in range(int(input())): n = int(input()) print(fact(n)) this question is from codechef to calculate factorial plz tell me why am i getting a runtime error time limit = 1 sec source limit =50000 bytes
1 Answer
0
https://code.sololearn.com/c7K7tfi7Vgrd/?ref=app you can check this