Make a list called orders_list and fill it with the names of various sandwiches. Then make an empty list called finished_list. Loop through the list of sandwich orders and print a message. for each order, such as I made your tuna sandwich. As each sandwich is made, move it to the list of finished sandwiches. After all the sandwiches have been made, print a message listing each sandwich that was made. Expected Output Example 1 I made your turkey I made your ham I made your pastrami I made your turkey I made your pastrami Here are all the sandwiches I made: turkey ham pastrami turkey pastrami

Database System Concepts
7th Edition
ISBN:9780078022159
Author:Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Publisher:Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Chapter1: Introduction
Section: Chapter Questions
Problem 1PE
icon
Related questions
Question
Overview
Make a list called orders_list and fill it with the names of various sandwiches. Then make an empty list called finished_list. Loop through the list of sandwich orders and print a message
for each order, such as I made your tuna sandwich. As each sandwich is made, move it to the list of finished sandwiches. After all the sandwiches have been made, print a message listing
each sandwich that was made.
Expected Output
Example 1
I made your turkey
I made your ham
I made your pastrami
I made your turkey
I made your pastrami
Here are all the sandwiches I made:
turkey
ham
pastrami
turkey
pastrami
Specifications
• You should submit a single file called M5A4.py
• It should follow the submission standards outlined here: Submission Standards
• Your program must start by declaring this orders_list:
orders_list = ['pastrami', 'turkey', 'pastrami', 'ham', 'turkey']
• Your program must declare an empty list named finished_list
• Your program must move the contents of orders_list to finished_list using a while-loop
• Your program must print out the finished list as shown (you can do this any way you like).
Tips and Tricks
It's pretty straightforward.
Transcribed Image Text:Overview Make a list called orders_list and fill it with the names of various sandwiches. Then make an empty list called finished_list. Loop through the list of sandwich orders and print a message for each order, such as I made your tuna sandwich. As each sandwich is made, move it to the list of finished sandwiches. After all the sandwiches have been made, print a message listing each sandwich that was made. Expected Output Example 1 I made your turkey I made your ham I made your pastrami I made your turkey I made your pastrami Here are all the sandwiches I made: turkey ham pastrami turkey pastrami Specifications • You should submit a single file called M5A4.py • It should follow the submission standards outlined here: Submission Standards • Your program must start by declaring this orders_list: orders_list = ['pastrami', 'turkey', 'pastrami', 'ham', 'turkey'] • Your program must declare an empty list named finished_list • Your program must move the contents of orders_list to finished_list using a while-loop • Your program must print out the finished list as shown (you can do this any way you like). Tips and Tricks It's pretty straightforward.
Expert Solution
steps

Step by step

Solved in 4 steps with 2 images

Blurred answer
Knowledge Booster
Lists
Learn more about
Need a deep-dive on the concept behind this application? Look no further. Learn more about this topic, computer-science and related others by exploring similar questions and additional content below.
Similar questions
  • SEE MORE QUESTIONS
Recommended textbooks for you
Database System Concepts
Database System Concepts
Computer Science
ISBN:
9780078022159
Author:
Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Publisher:
McGraw-Hill Education
Starting Out with Python (4th Edition)
Starting Out with Python (4th Edition)
Computer Science
ISBN:
9780134444321
Author:
Tony Gaddis
Publisher:
PEARSON
Digital Fundamentals (11th Edition)
Digital Fundamentals (11th Edition)
Computer Science
ISBN:
9780132737968
Author:
Thomas L. Floyd
Publisher:
PEARSON
C How to Program (8th Edition)
C How to Program (8th Edition)
Computer Science
ISBN:
9780133976892
Author:
Paul J. Deitel, Harvey Deitel
Publisher:
PEARSON
Database Systems: Design, Implementation, & Manag…
Database Systems: Design, Implementation, & Manag…
Computer Science
ISBN:
9781337627900
Author:
Carlos Coronel, Steven Morris
Publisher:
Cengage Learning
Programmable Logic Controllers
Programmable Logic Controllers
Computer Science
ISBN:
9780073373843
Author:
Frank D. Petruzella
Publisher:
McGraw-Hill Education