summaryrefslogtreecommitdiffhomepage
path: root/python.html.markdown
diff options
context:
space:
mode:
Diffstat (limited to 'python.html.markdown')
-rw-r--r--python.html.markdown13
1 files changed, 7 insertions, 6 deletions
diff --git a/python.html.markdown b/python.html.markdown
index 0bd16a80..e8c7110a 100644
--- a/python.html.markdown
+++ b/python.html.markdown
@@ -153,13 +153,14 @@ None # => None
"etc" is None # => False
None is None # => True
-# None, 0, and empty strings/lists/dicts/tuples all evaluate to False.
+# 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(0) # => False
+bool("") # => False
+bool([]) # => False
+bool({}) # => False
+bool(()) # => False
+bool(set()) # => False
####################################################
## 2. Variables and Collections