Question: What is the base case or cases for the function bellow def fun (y): if y < 0: print(Error!!) return elseif y == 0:

What is the base case or cases for the function bellow def  

What is the base case or cases for the function bellow def fun (y): if y < 0: print("Error!!") return elseif y == 0: return 0 elseif y == 1: return 1 else: return fun(y-1)+fun (y-2) Note: if multiple base cases found, use and between your answers Answer:

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock

The base cases for the function funy are 1 When y is less than 0 In this case the function prints ... View full answer

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 Programming Questions!