Answered step by step
Verified Expert Solution
Question
1 Approved Answer
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
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
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started