Question: This assignment serves as a review of several important Python features and capabilities you learned in the previous course. In it you will create code

 This assignment serves as a review of several important Python features
and capabilities you learned in the previous course. In it you will
create code to do the following: 1. read a set of inventory

This assignment serves as a review of several important Python features and capabilities you learned in the previous course. In it you will create code to do the following: 1. read a set of inventory items from a text file 2. create a Python list for each item 3. display each item in the list 4. build a "reverse" dictionary consisting of each item type as key and all items in that category as the 5. create an output file and write each item to it by iterating through the dictionary and writing by Note that each of the above five items are to be implemented as separate functions. The file read and list build' should be implemented as one function, resulting in a total of four that you are to create. Since this assignment has several parts, the first lab assignment will involve completing some of the above. So this assignment counts for both the first lab and class assignments. Use the time in the lab to help complete part of it. Input File You will be provided with an input file consisting of inventory items. The file name is "Alinput.txf". Each line consists of comma-separated data: inventory number, category, description, and price. Part of the input file is shown below. The actual file has additional lines. Note that the inventory number has 4 characters, the category is in the set (book", "elect", "cloth", and "food. The description is free text, up to 25 characters in length. The price is floating point with only two digits to the right of the decimal.

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!