Skip to content

Instantly share code, notes, and snippets.

@pknowledge
Created August 31, 2018 20:54
Show Gist options
  • Save pknowledge/96a2f0163e2e3608d1a65a0f59f119f8 to your computer and use it in GitHub Desktop.
Save pknowledge/96a2f0163e2e3608d1a65a0f59f119f8 to your computer and use it in GitHub Desktop.
Python Tutorial for Beginners - If Else statements
# Python Tutorial for Beginners - If Else statements
x = -100
if x != 100 and x > 0:
print("x is = ")
print(x)
if x > 0:
print("x is positive")
else:
print("x is negative")
print("finish")
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment