1
0
mirror of https://github.com/adambard/learnxinyminutes-docs.git synced 2025-08-01 04:20:39 +02:00

Merge pull request #4521 from gregoryinouye/python-remove-duplicate-truthy-falsy-explanation

[python/en] remove duplicate truthy falsy explanation
This commit is contained in:
Marcel Ribeiro Dantas
2022-10-21 10:48:23 +02:00
committed by GitHub

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
####################################################