[abap] dfdf

Viewer

  1. takeaway_menu = ["1. Pad Thai","2. Chicken Tikka Masala","3. Pepperoni Pizza","4. Veggie Burger with Fries","5. Burrito Bowl"]
  2. takeaway_prices = [12.99, 14.50,  9.99,  15.99,  11.50]
  3. delivery_fee = 5.00
  4. free_delivery_price = 30.00
  5.  
  6. print("Welcome to the takeaway delivery service.")
  7. print("Here's our menu.")
  8. for item in takeaway_menu:
  9.     print(item)
  10.  
  11. quantity = int(input("How many items would you like to purchase?"))
  12. order = []
  13. for i in range(quantity):
  14.     choice = int(input("Enter the menu number of the item you wish to add to your order: "))
  15.     order.append(choice)
  16. print("Thank you your order is as follows")
  17. for item in order:
  18.     print(takeaway_menu[item-1])

Editor

You can edit this paste and save as new:


File Description
  • dfdf
  • Paste Code
  • 09 May-2024
  • 688 Bytes
You can Share it: