diff options
author | Sean Nam <namsangwoo1@gmail.com> | 2017-02-09 17:10:03 -0800 |
---|---|---|
committer | Sean Nam <namsangwoo1@gmail.com> | 2017-02-09 17:10:03 -0800 |
commit | 5254804c1ccf51fb3c3c500a7095dd8408371837 (patch) | |
tree | cade605f3e011f8ac0d46ef74380c632e5502f99 /python3.html.markdown | |
parent | 52ff8f41e4ef9de074081b5ef22c5dfa4dd86f0a (diff) | |
parent | 7f0fff0adf38fb47b36da4a8c319c6c9c28c546d (diff) |
Merge remote-tracking branch 'upstream/master'
Diffstat (limited to 'python3.html.markdown')
-rw-r--r-- | python3.html.markdown | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/python3.html.markdown b/python3.html.markdown index 3821d84f..02745117 100644 --- a/python3.html.markdown +++ b/python3.html.markdown @@ -71,11 +71,14 @@ True and False # => False False or True # => True # Note using Bool operators with ints +# False is 0 and True is 1 +# Don't mix up with bool(ints) and bitwise and/or (&,|) 0 and 2 # => 0 -5 or 0 # => -5 0 == False # => True 2 == True # => False 1 == True # => True +-5 != False != True #=> True # Equality is == 1 == 1 # => True |