mirror of
https://github.com/adambard/learnxinyminutes-docs.git
synced 2024-11-26 09:21:00 +03:00
[python/en] Added Bool operators
Modified Bool operators
This commit is contained in:
parent
820eebcd33
commit
81b4f49e99
@ -62,7 +62,7 @@ to Python 2.x. Look for another tour of Python 3 soon!
|
||||
+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
|
||||
|
Loading…
Reference in New Issue
Block a user