Skip to content

Instantly share code, notes, and snippets.

@fabsta
Created August 28, 2016 20:26
Show Gist options
  • Save fabsta/da99209a678715d0adadb57f9dfee69d to your computer and use it in GitHub Desktop.
Save fabsta/da99209a678715d0adadb57f9dfee69d to your computer and use it in GitHub Desktop.

COMPARISONS AND BOOLEAN OPERATIONS

comparisons (these return True)

5 > 3
5 >= 3
5 != 3
5 == 5

boolean operations (these return True)

5 > 3 and 6 > 3
5 > 3 or 5 < 3
not False
False or not False and True     # evaluation order: not, and, or
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment