Examveda

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

C. 74

D. Infinite loop

Answer: Option B


This Question Belongs to Python Program >> Functions In Python

Join The Discussion

Related Questions on Functions in Python