Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- diners = []
- drink_list = []
- starter = []
- main = []
- dessert = []
- meal = []
- price = []
- # get diners names
- how_many = input("How many people will be eating? ")
- how_many = int(how_many)
- for diner in range(how_many):
- name = input("Who is diner number " + str(diner +1) + "? ")
- diners.append(name)
- print(diners) # confirmation - comment out in production
- # get menu choices
- drinks = input("Can I get you any drinks? ")
- if drinks == "Yes" or drinks == "Y" or drinks == "yes" or drinks == "y":
- drinks_cost = 0
- #loop through diners: get drink requests add cost
- for idrink in range(how_many):
- drink = input("What would you like? " + (diners[idrink])
- drink_list.append(drink)
- # drink_cost = input("Enter the price of ",(drink))
- print("So that's ") # confirm drinks order
- for i in range(len(drink_list)):
- print(drink[i])
- print("I'll give you a few minutes to look at the menu")
- else:
- print("Would you like a moment to look at the menu?")
Advertisement
Add Comment
Please, Sign In to add comment