Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- def restaurant_menus():
- items_available = [
- "chicken",
- "fish",
- "rice",
- "beef",
- "vegetables",
- ]
- customer_ordered_items = []
- choice = input("Do you want to order ? y / n: ")
- while choice == "y":
- food_name = input("Enter your item here: ")
- if food_name in items_available:
- customer_ordered_items.append(food_name)
- print("You added", customer_ordered_items)
- choice = input("Do you want more ? y / n: ")
- else:
- print(food_name, "is not available today")
- if customer_ordered_items:
- print("You items are", customer_ordered_items)
- else:
- print("You added no items")
- restaurant_menus()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement