Skip to content

Instantly share code, notes, and snippets.

@kiwiBBC
Created November 15, 2017 21:49
Show Gist options
  • Save kiwiBBC/a554fe3578d565fa15d60d3e6184494c to your computer and use it in GitHub Desktop.
Save kiwiBBC/a554fe3578d565fa15d60d3e6184494c to your computer and use it in GitHub Desktop.
print "Welcome to our fabulous menu creator!"
menu_dict = {}
while True:
dish = raw_input("Please enter a dish: ")
price = raw_input("Please enter a price for the dish: ")
if price == True:
menu_dict[dish] = True
else:
menu_dict[dish] = price
new = raw_input("Would you like to enter another dish? (yes/no) ").lower()
if new == "no" or new == "n":
break
print "\nTODAY'S MENU:\n"
for item in menu_dict:
print item + ": %s EUR" % menu_dict[item]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment