practicepython.in
python exercises
171 exercises

Daily #12 · 10 October 2026

False, in a list Hard

What does this print?

print(False == False in [False])
  1. ATrue
  2. B[False]
  3. CFalse
  4. Draises TypeError
Show the answer

A: True

Why: Comparisons chain: a == b in c means a == b and b in c, the same way 1 < x < 5 does. Both halves are true here.

Play today’s puzzle →