Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- menu = ["ChickenStrips","French Fries","Hamburger","Hotdog","Large drink","Medium drink","Milkshake","Salad","Small drink"]
- cost = [3.50,2.50,4.00,3.50,1.75,1.50,2.25,3.75,1.25]
- print("Welcome to the restaurant")
- print("This is the menu we have available today : ")
- total = 0
- that_is_all = False
- while that_is_all == False:
- for i in range(0, 9):
- print(str(i + 1) + ". " + str(menu[i]) + "- $" + str(cost[i]))
- order = input('Please insert your order ')
- order = [int(i) for i in str(order)]
- for val in order:
- total = total + cost[val-1]
- print("This is the total : " + str(total) + "$")
- b =input('Do you want something more? ')
- if b == "no" or b == "No" or b =="NO":
- that_is_all =True
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement