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 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
The base cases for the function funy are 1 When y is less than 0 In this case the function prints ... View full answer
Get step-by-step solutions from verified subject matter experts
