mirror of
https://github.com/adambard/learnxinyminutes-docs.git
synced 2025-08-01 12:30:48 +02:00
[python/en] Added Bool operators
Modified Bool operators
This commit is contained in:
@@ -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
|
||||
|
Reference in New Issue
Block a user