Skip to content

Instantly share code, notes, and snippets.

@Manuela82
Created November 15, 2017 19:43
Show Gist options
  • Save Manuela82/5061aa00e01fb74524dcda27812c9fb1 to your computer and use it in GitHub Desktop.
Save Manuela82/5061aa00e01fb74524dcda27812c9fb1 to your computer and use it in GitHub Desktop.
Restaurant Menu
print "TODAY'S MENU\n"
menu_dict = {}
while True:
dish = raw_input("Please enter today's dish: ")
price = raw_input("Please enter the price of that dish: EUR ")
if dish == True:
menu_dict[dish] = True
else:
menu_dict[dish] = "EUR " + price
new = raw_input("Would you like to add an additional dish? (yes/no): ")
if new == "no":
break
print "\nToday's Dishes: %s" % menu_dict
print "Enjoy your meal!"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment