The Python Papers

The Python Papers

Python Pop Quiz - Truthy or Falsey

Mike Driscoll's avatar
Mike Driscoll
Mar 18, 2026
∙ Paid

Python supports Booleans in much the same way as other programming languages do. In Python’s case, it uses the True and False keywords. But there is also the concept of truthy and falsey. An example of a truthy value in Python is a number greater than zero (also a number less than zero), and an example of a falsey value would be an empty string. When us…

User's avatar

Continue reading this post for free, courtesy of Mike Driscoll.

Or purchase a paid subscription.
© 2026 Mike Driscoll · Privacy ∙ Terms ∙ Collection notice
Start your SubstackGet the app
Substack is the home for great culture