summaryrefslogtreecommitdiffhomepage
path: root/python3.html.markdown
diff options
context:
space:
mode:
authorSteven Basart <xksteven@users.noreply.github.com>2014-09-07 19:23:07 -0400
committerSteven Basart <xksteven@users.noreply.github.com>2014-09-07 19:23:07 -0400
commit820eebcd3362841721a981f91695b64af8f50b94 (patch)
tree036e67b8bcd790682efb5f68291de53e35f26035 /python3.html.markdown
parent62f4c0de22452177d96ba24ce0cf8cce119af47b (diff)
[python3/en] Bool operators
Bool operators
Diffstat (limited to 'python3.html.markdown')
-rw-r--r--python3.html.markdown5
1 files changed, 3 insertions, 2 deletions
diff --git a/python3.html.markdown b/python3.html.markdown
index c3e2ede5..a94f4eae 100644
--- a/python3.html.markdown
+++ b/python3.html.markdown
@@ -66,11 +66,12 @@ not False # => True
True and False #=> False
False or True #=> True
-# Note with ints
+# Note using Bool operators with ints
0 and 2 #=> 0
-5 or 0 #=> -5
0 == False #=> True
-2 == True #=> False #only 1 == True #=> True
+2 == True #=> False
+1 == True #=> True
# Equality is ==
1 == 1 # => True