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

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

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!