Last active
August 29, 2015 14:26
-
-
Save antonkartashov/b976d16f27a5d94facd5 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Логические "и", "или", "не" | |
a and b | |
a or b | |
a not b | |
# Рассмотрим пример: | |
a = b = c = true | |
d = false | |
if a is b and c isnt d | |
print "Okey" | |
if (a is b) and (c isnt d) | |
print "Right" | |
if a == b && c != d | |
print "Cool" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment