Q. What will be the output?
Code:
ef fact(num): if num == 0: return 1 else: return _____________________ Suppose n=5 then, 5*4*3*2*1 is returned which is the factorial of 5.
β
Correct Answer: (A)
num*fact(num-1)