Question: GroceryList Create an interactive program the allows a user to build, edit and display their grocery list. The program should continuously prompt the user to
GroceryList
Create an interactive program the allows a user to build, edit and display their grocery list.
The program should continuously prompt the user to make one of the following choices:
Add an item
Remove an item chosen by the user
Make sure to check if the item is in the list first! Otherwise, you'll get a ValueError when you remove it
Display all items in the list
Clear the list of items
Exit
Sample Output
Welcome to the Generic Grocery List Application!
Add an item
Remove an item
Display all items
Clear the list
Exit
Select an option:
Enter the item's name: Chips
Add an item
Remove an item
Display all items
Clear the list
Exit
Select an option:
Enter the item's name: Cadbury
Add an item
Remove an item
Display all items
Clear the list
Exit
Select an option:
Enter the item's name: Bacon
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
