Created
November 15, 2017 19:43
-
-
Save Manuela82/5061aa00e01fb74524dcda27812c9fb1 to your computer and use it in GitHub Desktop.
Restaurant Menu
This file contains hidden or 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
| 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