Fill in the line of the following Python code for calculating the factorial of a number.
def fact(num): if num == 0: return 1 else: return _____________________

Fill in the line of the following Python code for calculating the factorial of a number.

def fact(num): if num == 0: return 1 else: return _____________________
Correct Answer num*fact(num-1)

Related Questions

What is the right choice, if the following loop is implemented?
void main(){ int num = 0; do{ --num; printf("%d", num); }while( ++num >= 0 );}
Observe the following Python code?
def a(n): if n == 0: return 0 else: return n*a(n - 1)def b(n, tot): if n == 0: return tot else: return b(n-2, tot-2)