Skip to content

Instantly share code, notes, and snippets.

@richardbwest
Last active July 20, 2016 10:44
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/125ca09d999c6d6654a29dd400bac37a to your computer and use it in GitHub Desktop.
Save richardbwest/125ca09d999c6d6654a29dd400bac37a to your computer and use it in GitHub Desktop.
A python program to help you choose a breakfast.
choice = input("What do you want to eat?")
if choice == "cereal"):
print("There's milk in the fridge!")
print("We only have corn flakes.")
elif choice in ["tea","coffee"]:
print("You can't just have a drink!")
elif choice == "full english":
print("Ahh, my favourite!")
else:
print("We don't have that, sorry.")
print("Goodbye from me!")
#line 11 left blank for readability :-)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment