In: Computer Science
Using Python, write a program that meets the following requirements:
Python code:
#initializing a sample sandwich_orders list
sandwich_orders=["tuna sandwitch","vegetable sandwitch","chicken
sandwitch"]
#initializing an empty finished_sandwiches list
finished_sandwiches=[]
#looping each item in sandwich_orders
for i in sandwich_orders:
#printing the sandwich in which working on
print("I am working on your "+i)
#adding that sandwich to finished_sandwiches list
finished_sandwiches.append(i)
#printing the sandwitches which are made
print("The sandwitches which are made are ",end="")
print(*finished_sandwiches,sep=", ")
Screenshot:
Output: