Fill In The Line Of The Following Python Code For Calculating #716
Fill in the line of the following Python code for calculating the factorial of a number.</p> <pre><code class="language-python"> def fact(num): if num == 0: return 1 else: return _____________________ </code></pre>
This multiple choice question (MCQ) is related to the book/course gs gs109 Python. It can also be found in gs gs109 Argument Passing, Variables and Recursion - Python Recursion - Quiz No.1.
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 _____________________
num*fact(num-1)
(num-1)*(num-2)
num*(num-1)
fact(num)*fact(num-1)