Quick actions

cmd+k|ctrl+k

Navigation

Languages

36-7

Snippet info

Language

Python

Visibility

public

Author

python100

Created

2025-08-02T20:51:16.658092Z

Updated

2025-08-02T20:51:16.658092Z

import os, time
listOfFood = []
def prettyPrint():
  os.system("clear") 
  print("listofFood") 
  print()
  counter = 1 
  for order in listOfFood: 
    print(f"[counter]: {order}") 
    counter + 1 
  time.sleep(1)
while True:
  print("Yummy Food Restaurant")
  menu = input("1. Order food\n2: Delete order\n3. Leave a review\n4. Delivery\n> ")
  if menu == "1":
    order = input("order > ")
    listOfFood.append(order)
  elif menu =="2":
    order = input ("delete order> ")
    if order in listOfFood:
      listOfFood.remove(order)
  elif menu == "3": 
  prettyPrint() 
  time.sleep(1)
  os.system("clear")
INFO