Created
July 7, 2020 17:49
-
-
Save misterhtmlcss/15d62e33ff96219ba8f8565fd975926a to your computer and use it in GitHub Desktop.
Discussion from Unit 3 - UoPeople
This file contains 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
# x = -10 | |
# x = 0 | |
# x = 2 | |
if x != 0: | |
print("This number ", x, " is not 0.") | |
else: | |
print(x, " is 0") | |
# I think the not operator is interesting. | |
if not x: | |
print(x, " is 0") | |
else: | |
print("This number ", x, " is not 0.") |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment