Answered step by step
Verified Expert Solution
Question
1 Approved Answer
Only Solve using Lists in python. DO NOT USE CLASS. Create an interactive program the allows a user to build, edit and display their grocery
Only Solve using Lists in python. DO NOT USE CLASS.
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: 1) Add an item 2) 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! 3) Display all items in the list 4) Clear the list of items 5) Exit Sample Output Welcome to the Generic Grocery List Application! 1) Add an item 2) Remove an item 3) Display all items 4) Clear the list 5) Exit Select an option: 1 Enter the item's name: Chips 1) Add an item 2) Remove an item 3) Display all items 4) Clear the list 5) Exit Select an option: 1 Enter the item's name: Cadbury 1) Add an item 2) Remove an item 3) Display all items 4) Clear the list 5) Exit Select an option: 1Step 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