Answered step by step
Verified Expert Solution
Link Copied!

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. image text in transcribed

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: 1

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

More Books

Students also viewed these Databases questions

Question

=+What kinds of problems need to be overcome?

Answered: 1 week ago