Created
August 31, 2018 20:54
-
-
Save pknowledge/96a2f0163e2e3608d1a65a0f59f119f8 to your computer and use it in GitHub Desktop.
Python Tutorial for Beginners - If Else statements
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
# 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