Skip to content

Instantly share code, notes, and snippets.

@richardbwest
Created July 20, 2016 10:05
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save richardbwest/335c77b326d4aa2a92a51eacb472ec4a to your computer and use it in GitHub Desktop.
Save richardbwest/335c77b326d4aa2a92a51eacb472ec4a to your computer and use it in GitHub Desktop.
A short example of if statements with lists.
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