What will be the output of the following Python code?
def fun(n):
if (n > 100):
return n - 5
return fun(fun(n+11));
print(fun(45))
def fun(n):
if (n > 100):
return n - 5
return fun(fun(n+11));
print(fun(45))A. 50
B. 100
C. 74
D. Infinite loop
Answer: Option B

Join The Discussion