Vidyalelo
Python · Q33

Functions in Python

Programming · Python · question 33

Q33

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))

A.
50
B.
100
Answer
C.
74
D.
Infinite loop

Answer: Option B

Solution

Answer: Option B
No explanation is given for this question Let's Discuss on Board