summaryrefslogtreecommitdiffhomepage
path: root/python.html.markdown
diff options
context:
space:
mode:
authorMarcel Ribeiro Dantas <ribeirodantasdm@gmail.com>2022-10-21 10:48:23 +0200
committerGitHub <noreply@github.com>2022-10-21 10:48:23 +0200
commit0f97d7cc873baf6b6af1354056f1524bce0b2c24 (patch)
tree94ad82094fd90b29e36170937219a6bc762d1d32 /python.html.markdown
parenta7456cfa0c8c47efe155156b187929c51acc1f8c (diff)
parent52617d5c82c0f5a8c50e9c75dde3918a3b81a869 (diff)
Merge pull request #4521 from gregoryinouye/python-remove-duplicate-truthy-falsy-explanation
[python/en] remove duplicate truthy falsy explanation
Diffstat (limited to 'python.html.markdown')
-rw-r--r--python.html.markdown9
1 files changed, 0 insertions, 9 deletions
diff --git a/python.html.markdown b/python.html.markdown
index 0b115c4e..4aeb93f4 100644
--- a/python.html.markdown
+++ b/python.html.markdown
@@ -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
####################################################