Question: Purpose: To practice your ability to create and manipulate lists. Degree of Difficulty: Easy For this question, you will write a (very) simple shopping list

 Purpose: To practice your ability to create and manipulate lists. Degree

Purpose: To practice your ability to create and manipulate lists. Degree of Difficulty: Easy For this question, you will write a (very) simple shopping list application. Your program will allow a user to create a list of groceries they need to buy, and allow them to remove items from their list as they add them to their grocery cart. The first part of your program should ask the user to create a shopping list. it should repeatedly show a prompt to the user asking if they want to add something to their list. Each time they say yes, the program should ask the user to enter the item and it should be added to a list variable that holds the shopping list. and then ask again. When they say no, the program should continue to the second part. Get this part of the program working before going any further. Do not move on to the second part of the program until you know that the first part works. The second part of the program will display the shopping list. A prompt will then ask the user to type the name of the item they would like to delete from their list. Once they enter an item, that item will be removed from the shopping list. The program will then continue to print the list and ask for an item to be removed. Once there are no more items in the list, the program will terminate. A typical run of our program might look like this: Sample Run Here is an example of how your program's console output might look. Green text was entered by the user. Welcone to Super Shoppert What would you 1 ike to add to your shopping 1 ist? =11k Iten milk added. Would you like to add sonething to your 1i at (y/a)?;y Iten name: egge Iten egga added. Would you 11ke to add sonething to your 11nt(y) ?: n Itens in your 11nt: ['milk,', 'eggs,] What iten vould you like to delete?t ezgn Itens in your 1i int: [? 1k+] What iten vould you like to delete? i mikk Shopping Completet Goodbye. What to Hand In Hand in your solution in a file called a5q1v1.py. The version number iv1) portion of the file names must be changed to v2, v3 etc. each time you resubmit your assignment. Remember to include all your solution files each time you submit/resubmit your assignment. Evaluation - 2 marks for correct while loops - 1 mark for console input - 1 mark for creating a list type variable

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!