Question: Write a script called basket.py that repeatedly asks the user to enter an item to be placed in a basket. When the user enters nothing

Write a script called basket.py that repeatedly asks the user to enter an item to be placed in a basket. When the user enters nothing (case insensitive), the script should stop asking for new items and modify the script so that it displays how many items are in the basket and lists each item in the basket along with its item number (starting with Item 1).The final display should look like this:

Write a script called basket.py that repeatedly asks the user to enter

There are 3 items in the basket: Item 1: a sandwich Item 2: two cans of Dr Pepper Item 3: some napkins

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!