Question: Complete the recursive case that can replace XXX in this function that calculates the factorial of the given number. def factorial ( number ) :
Complete the recursive case that can replace XXX in this function that calculates the factorial of the given number.
def factorialnumber:
if number :
return
else:
XXX
printfactorial
a
return numbernumber
b
Multiple of these work
c
return numbernumber
d
None of these work
e
return numberfactorialnumber
f
return factorialnumberfactorialnumber
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
