Question: def fun ( par ) : if par 0 : return 1 * * * * 2 else: return fun ( par - 3 )

def fun (par) :
if par 0 :
return 1****2
else:
return fun(par -3)
What will be the output of the following statements:
x=1 ambda y: fun (y+2)ify=0 else fun (y+5)
y=1 ambda z:x(z-2)+1ifz0 else 1u
print (y(10))
 def fun (par) : if par 0 : return 1****2 else:

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!