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

Join The Discussion