Examveda

What will be the output of the following Python code?
def check(n):
    if n < 2:
        return n % 2 == 0
    return check(n - 2)
print(check(11))

A. False

B. True

C. 1

D. An exception is thrown

Answer: Option A


This Question Belongs to Python Program >> Functions In Python

Join The Discussion

Related Questions on Functions in Python