Question: Use Python to create a code HW 11: Shopping List Write a menu-driven program that allows a user to create a shopping list. The user
HW 11: Shopping List Write a menu-driven program that allows a user to create a shopping list. The user should have the option to add an item, remove an item, sort and print the list container. There should also be an option to quit. If the user attempts to remove an item that is not on the list, the program should not crash (i.e., you should check if the item is in the list before attempting to remove it). If the user chooses to print the list, the printed list should be numbered. Do user validation to ensure that the user enters a valid choice from the menu. HW 11: Shopping List Write a menu-driven program that allows a user to create a shopping list. The user should have the option to add an item, remove an item, sort and print the list container. There should also be an option to quit. If the user attempts to remove an item that is not on the list, the program should not crash (i.e., you should check if the item is in the list before attempting to remove it). If the user chooses to print the list, the printed list should be numbered. Do user validation to ensure that the user enters a valid choice from the menu
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
