1
0
mirror of https://github.com/adambard/learnxinyminutes-docs.git synced 2025-01-29 11:20:21 +01:00

remove duplicate truthy falsy explanation

This commit is contained in:
Gregory Inouye 2022-10-20 11:56:59 -07:00
parent a7456cfa0c
commit 52617d5c82
No known key found for this signature in database
GPG Key ID: B4EE161A73DC61D7

View File

@ -165,15 +165,6 @@ None # => None
"etc" is None # => False
None is None # => True
# None, 0, and empty strings/lists/dicts/tuples/sets all evaluate to False.
# All other values are True
bool(0) # => False
bool("") # => False
bool([]) # => False
bool({}) # => False
bool(()) # => False
bool(set()) # => False
####################################################
## 2. Variables and Collections
####################################################