Created
April 1, 2022 16:07
-
-
Save pmbrull/be6dff131e6b65b172e018d3540dafa1 to your computer and use it in GitHub Desktop.
Python truth 3
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
count = 0 | |
if not count: # Handles 0 and None | |
... | |
if count is None: # Only handles None | |
... |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment