Question: Please write program in python 3 (IDLE) Lab Steps The program should be modular. For example, you will want to have an add _item(shopping list)

 Please write program in python 3 (IDLE) Lab Steps The program
should be modular. For example, you will want to have an add
Please write program in python 3 (IDLE)

Lab Steps The program should be modular. For example, you will want to have an add _item(shopping list) function, a delete item/shopping, list) function, a display list(shopping list) function, a display_menu() function, and a main(). Sample Output: Welcome to the program! 1. Add an item 2. List all items 3. Delete an item 4. Exit Enter a menu option: 2 1: bananas 2: apples Enter a menu option: 1 Please enter the item: pears pears was added to the shopping list Enter a menu option: 2 1 : bananas 2 : apples 3 pears Enter a menu option: 3 Enter a menu option: 3 Which number to delete: 3 pears was deleted Enter a menu option: 2 1: bananas 2: apples Enter a menu option: 4 have a great day! Specifications: The program should start with 2 items in the shopping list. Don't forget to include at the end of the program the code: . if name = " main ": main(); e Use this code for the delete item(shopping list) function: def deletel item (shopping list) number-int (input ("Which number to delete: if number1en(shopping-list): ")) print ("Invalid number In ) else: item-shopping list. pop (number-1) print (item," was deleted ") print

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!