adplus-dvertising
frame-decoration

Question

What is the output of the code shown below?
f=lambda x:bool(x%2)
print(f(20), f(21))

a.

False True

b.

False False

c.

True True

d.

True False

Posted under Python

Answer: (a).False True

Engage with the Community - Add Your Comment

Confused About the Answer? Ask for Details Here.

Know the Explanation? Add it Here.

Q. What is the output of the code shown below?