summaryrefslogtreecommitdiffhomepage
path: root/python.html.markdown
diff options
context:
space:
mode:
Diffstat (limited to 'python.html.markdown')
-rw-r--r--python.html.markdown4
1 files changed, 2 insertions, 2 deletions
diff --git a/python.html.markdown b/python.html.markdown
index 22d236ac..941ba9f4 100644
--- a/python.html.markdown
+++ b/python.html.markdown
@@ -105,8 +105,8 @@ None is None #=> True
# None, 0, and empty strings/lists all evaluate to False.
# All other values are True
-0 == False #=> True
-"" == False #=> True
+bool(0) #=> False
+bool("") #=> False
####################################################