What will be the output?
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:
num*fact(num-1)
total answers (1)
start bookmarking useful questions and collections and save it into your own study-lists, login now to start creating your own collections.
Correct Answer:
num*fact(num-1)
need an explanation for this answer? contact us directly to get an explanation for this answer