Question: For this question, you will write a (very) simple shopping list application. Your program will allow a user to create a list of groceries

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

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. Welcome to Super Shopper! What would you like to add to your shopping list?: milk Item milk added. Would you like to add something to your list (y/n)?: y Item name: eggs Item eggs added. Would you like to add something to your list (y/n)?: n Items in your list: ['milk', 'eggs '] What item would you like to delete?: eggs Items in your list: ['milk'] What item would you like to delete?: milk Shopping Complete! Goodbye. What to Hand In Hand in your solution in a file called a5q1v1.py. The version number (v1) portion of the file names must be changed to v2, v3 etc. each time you resub- mit 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 1 mark for printing shopping list 1 mark for correctly using method append() . 1 mark for correctly using method remove()

Step by Step Solution

3.46 Rating (146 Votes )

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock

Python program for a simple shopping list application based on your requirements python Initialize a... View full answer

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 Programming Questions!