Answered step by step
Verified Expert Solution
Question
1 Approved Answer
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:
There are 3 items in the basket: Item 1: a sandwich Item 2: two cans of Dr Pepper Item 3: some napkinsStep by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started