Question: You work for a small retail store that keeps track of their inventory using a text file called inventory.txt . Each line in the file

You work for a small retail store that keeps track of their inventory using a text file called inventory.txt. Each line in the file represents a different item in the store's inventory, with the follow format:AllinonePC, 100,2000,0labtop,10,3000,0hpprinter, 10,300,0scanners, 5,350,0mouse, 100,30,0keyboard, 50,45,0Your manager has asked you to write a Python script that does the following:1-Reads in the current inventory from the inventory.txt file2-Allow the user to search for an item by name and displays its current quantity and price3-Allows the use4 to update the quantity of an item in the inventory4-Saves the uploaded inventory back to the inventory.txt file

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!