Created
May 18, 2020 23:11
-
-
Save slingam00/61ec313aa8846a8aa5a6a02ed3412425 to your computer and use it in GitHub Desktop.
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
# If Statements | |
if True: | |
print("The If statement is True") | |
if 2 > 1: | |
print("2 is greater than 1") | |
# Else Statements | |
if 2 < 1: | |
print("2 is less than 1") | |
else: | |
print("2 is not less than 1") | |
# Elif Statements | |
if 2 < 1: | |
print("2 is less than 1") | |
elif 2 > 1: | |
print("2 is greater than 1") | |
else: | |
print("2 is equal to 1") | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment