Created
April 30, 2020 09:18
-
-
Save raeq/4d32ed3e3e7ba22f34d5be2715f1b0a6 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
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