Skip to content

Instantly share code, notes, and snippets.

@slingam00
Created May 18, 2020 23:11
Show Gist options
  • Save slingam00/61ec313aa8846a8aa5a6a02ed3412425 to your computer and use it in GitHub Desktop.
Save slingam00/61ec313aa8846a8aa5a6a02ed3412425 to your computer and use it in GitHub Desktop.
# 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