Question: Question 4 (1 point) def factorial(n): return 1 else: return n factorial(n-1) What is the base case of the function shown above? When n 1
Question 4 (1 point) def factorial(n): return 1 else: return n factorial(n-1) What is the base case of the function shown above? When n 1 When n 1 The function runs infinitely. When n C There is no base case
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
