Advertisement
Guest User

Untitled

a guest
Aug 9th, 2018
274
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.75 KB | None | 0 0
  1. menu = ["ChickenStrips","French Fries","Hamburger","Hotdog","Large drink","Medium drink","Milkshake","Salad","Small drink"]
  2. cost = [3.50,2.50,4.00,3.50,1.75,1.50,2.25,3.75,1.25]
  3.  
  4. print("Welcome to the restaurant")
  5. print("This is the menu we have available today : ")
  6.  
  7.  
  8. total = 0
  9. that_is_all = False
  10.  
  11.  
  12. while that_is_all == False:
  13. for i in range(0, 9):
  14. print(str(i + 1) + ". " + str(menu[i]) + "- $" + str(cost[i]))
  15. order = input('Please insert your order ')
  16. order = [int(i) for i in str(order)]
  17. for val in order:
  18. total = total + cost[val-1]
  19. print("This is the total : " + str(total) + "$")
  20. b =input('Do you want something more? ')
  21. if b == "no" or b == "No" or b =="NO":
  22. that_is_all =True
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement