diff options
author | Gregory Inouye <48232124+gregoryinouye@users.noreply.github.com> | 2022-10-20 11:56:59 -0700 |
---|---|---|
committer | Gregory Inouye <48232124+gregoryinouye@users.noreply.github.com> | 2022-10-20 11:56:59 -0700 |
commit | 52617d5c82c0f5a8c50e9c75dde3918a3b81a869 (patch) | |
tree | 94ad82094fd90b29e36170937219a6bc762d1d32 /python.html.markdown | |
parent | a7456cfa0c8c47efe155156b187929c51acc1f8c (diff) |
remove duplicate truthy falsy explanation
Diffstat (limited to 'python.html.markdown')
-rw-r--r-- | python.html.markdown | 9 |
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 #################################################### |