timpin

Untitled

Aug 15th, 2019
99
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.02 KB | None | 0 0
  1. diners = []
  2. drink_list = []
  3. starter = []
  4. main = []
  5. dessert = []
  6. meal = []
  7. price = []
  8. # get diners names
  9. how_many = input("How many people will be eating? ")
  10. how_many = int(how_many)
  11. for diner in range(how_many):
  12. name = input("Who is diner number " + str(diner +1) + "? ")
  13. diners.append(name)
  14. print(diners) # confirmation - comment out in production
  15. # get menu choices
  16. drinks = input("Can I get you any drinks? ")
  17. if drinks == "Yes" or drinks == "Y" or drinks == "yes" or drinks == "y":
  18. drinks_cost = 0
  19. #loop through diners: get drink requests add cost
  20. for idrink in range(how_many):
  21. drink = input("What would you like? " + (diners[idrink])
  22. drink_list.append(drink)
  23. # drink_cost = input("Enter the price of ",(drink))
  24.  
  25. print("So that's ") # confirm drinks order
  26. for i in range(len(drink_list)):
  27. print(drink[i])
  28. print("I'll give you a few minutes to look at the menu")
  29. else:
  30. print("Would you like a moment to look at the menu?")
Advertisement
Add Comment
Please, Sign In to add comment