Created
July 20, 2016 10:05
-
-
Save richardbwest/335c77b326d4aa2a92a51eacb472ec4a to your computer and use it in GitHub Desktop.
A short example of if statements with lists.
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
answer = input("Do you like Marmite?") | |
if answer in ["YES","Yes","yes","yep","YEH","y"]: | |
print("Urgh, you are weird and have no taste buds!") |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment