Skip to content

Instantly share code, notes, and snippets.

@antonkartashov
Last active August 29, 2015 14:26
Show Gist options
  • Save antonkartashov/b976d16f27a5d94facd5 to your computer and use it in GitHub Desktop.
Save antonkartashov/b976d16f27a5d94facd5 to your computer and use it in GitHub Desktop.
# Логические "и", "или", "не"
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