Fill in the code to complete the following function for computing fact

Loading

Choose the correct option.

Fill in the code to complete the following function for computing factorial.
def factorial(n):
    if n == 0: # Base case
        return1
    else:
        return _____________________ # Recursive call

A. n * (n – 1)
B. n
C. n * factorial(n – 1)
D. factorial(n – 1) * n

Leave a Comment