Answered step by step
Verified Expert Solution
Question
1 Approved Answer
in python: Continually ask the user for a product name. Next, see if that product name is included in the inventory list below. If it
in python: Continually ask the user for a product name. Next, see if that product name is included in the inventory list below. If it is, remove the product from the list and then print the current list of products to the user. If the product is not on the list you should alert the user that we do not currently carry the product in question. You can end the program when the list of products is exhausted or when the user types the string "end." products = ["apple", "pear", "peach", "banana"]
Step 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