Skip to content

Instantly share code, notes, and snippets.

@raeq
Created April 30, 2020 09:18
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save raeq/4d32ed3e3e7ba22f34d5be2715f1b0a6 to your computer and use it in GitHub Desktop.
Save raeq/4d32ed3e3e7ba22f34d5be2715f1b0a6 to your computer and use it in GitHub Desktop.
print (f"1 and 1: {bool(1 and 1)}")
print (f"0 and 0: {bool(0 and 0)}")
print (f"1 and 0: {bool(1 and 0)}")
print (f"not 0: {bool(not 0)}")
print (f"not 1: {bool(not 1)}")
print (f"1 or 1: {bool(1 or 1)}")
print (f"0 or 0: {bool(0 or 0)}")
print (f"1 or 0: {bool(1 or 0)}")
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment