Question: Can anyone help me figure out the code to get this program to run in Python? Write a program to input a list of grocery

 Can anyone help me figure out the code to get this

Can anyone help me figure out the code to get this program to run in Python?

Write a program to input a list of grocery items for your shopping list and then writes them to a file a line at a time. The program should keep asking you to enter grocery items until you type 'done'. After you complete the list, the program should then load the file and read the list back to you by printing each item out. Sample Run: Let's make a shopping list Type 'done' when you're finished: Enter Item: milk Enter Item: cheese Enter Item: eggs Enter Item: beer Enter Item: apples Enter Item: done Your shopping list: milk cheese eggs beer apples

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!