Skip to content

Instantly share code, notes, and snippets.

@misterhtmlcss
Created July 7, 2020 17:49
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 misterhtmlcss/15d62e33ff96219ba8f8565fd975926a to your computer and use it in GitHub Desktop.
Save misterhtmlcss/15d62e33ff96219ba8f8565fd975926a to your computer and use it in GitHub Desktop.
Discussion from Unit 3 - UoPeople
# 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