The Python Papers

The Python Papers

Share this post

The Python Papers
The Python Papers
Python 101 - Boolean Operations and None
Copy link
Facebook
Email
Notes
More

Python 101 - Boolean Operations and None

Mike Driscoll's avatar
Mike Driscoll
Aug 10, 2023
∙ Paid
5

Share this post

The Python Papers
The Python Papers
Python 101 - Boolean Operations and None
Copy link
Facebook
Email
Notes
More
Share

You will find that you often need to know if something is True or False. For example, you might want to know if someone is old enough to create a bank account. If they are, that is usually represented as True. These values are known as Booleans or bool for short.

In Python, False maps to 0 (zero) and True maps to 1 (one).

You can easily see this is true u…

Keep reading with a 7-day free trial

Subscribe to The Python Papers to keep reading this post and get 7 days of free access to the full post archives.

Already a paid subscriber? Sign in
© 2025 Mike Driscoll
Privacy ∙ Terms ∙ Collection notice
Start writingGet the app
Substack is the home for great culture

Share

Copy link
Facebook
Email
Notes
More