Question: IN PYTHON Adding an item a - Add an Item r - Remove an Item p - Print Shopping List s - Sort the Shopping
IN PYTHON
Adding an item | a - Add an Item r - Remove an Item p - Print Shopping List s - Sort the Shopping List q - Quit Please enter your choice:a What would you like to add?peaches added: peaches r - Remove an Item p - Print Shopping List s - Sort the Shopping List q - Quit Please enter your choice:a What would you like to add?eggs added: eggs a - Add an Item r - Remove an Item p - Print Shopping List s - Sort the Shopping List q - Quit Please enter your choice:a What would you like to add?apples added: apples a - Add an Item r - Remove an Item p - Print Shopping List s - Sort the Shopping List q - Quit Please enter your choice:a What would you like to add?bananas added: bananas |
|---|---|
| Removing an item | a - Add an Item r - Remove an Item p - Print Shopping List s - Sort the Shopping List q - Quit Please enter your choice:r What would you like to remove?tails tails was not on your list a - Add an Item r - Remove an Item p - Print Shopping List s - Sort the Shopping List q - Quit Please enter your choice:r What would you like to remove?bananas removed: bananas |
| Printing the list | a - Add an Item r - Remove an Item p - Print Shopping List s - Sort the Shopping List q - Quit Please enter your choice:p Your list contains the following items: 1 eggs 2 peaches 3 turtles |
| Sorting the list | a - Add an Item r - Remove an Item p - Print Shopping List s - Sort the Shopping List q - Quit Please enter your choice:s Your list contains the following items: 1 eggs 2 peaches 3 turtles |
| Quit | a - Add an Item r - Remove an Item p - Print Shopping List s - Sort the Shopping List q - Quit Please enter your choice:c Please enter a valid choice:Q Your list contains the following items: 1 peaches 2 eggs 3 apples |
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
