Guest User

Untitled

a guest
Nov 17th, 2017
81
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.44 KB | None | 0 0
  1. print "TODAY'S MENU\n"
  2.  
  3. menu_dict = {}
  4.  
  5. while True:
  6. dish = raw_input("Please enter today's dish: ")
  7. price = raw_input("Please enter the price of that dish: EUR ")
  8.  
  9. if dish == True:
  10. menu_dict[dish] = True
  11. else:
  12. menu_dict[dish] = "EUR " + price
  13.  
  14. new = raw_input("Would you like to add an additional dish? (yes/no): ")
  15.  
  16. if new == "no":
  17. break
  18.  
  19. print "\nToday's Dishes: %s" % menu_dict
  20.  
  21. print "Enjoy your meal!"
Add Comment
Please, Sign In to add comment