1
0
mirror of https://github.com/adambard/learnxinyminutes-docs.git synced 2025-01-17 13:38:38 +01: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
commit 0f97d7cc87
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

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