Question: PROBLEM 3 In this problem, we redesign the inventory program for Trish's bookstore using dictionaries. Note: We will be continuing this redesign in Lab

PROBLEM 3 In this problem, we redesign the inventory program for Trish's bookstore using dictionaries. Note: We will be continuing this redesign in Lab 10. Copy the starter code Lab09P3-starter.py to a file named Lab09P3.py. Remember in Lab 08, you used a list of lists to store the item information in the inventory system before writing it out to a file. You will change that now so that you are keeping the information in three dictionaries instead. There are three TODO comments: At the first TODO comment, create three empty directories named inventory_counts, inventory_costs and inventory_descriptions. At the second TODO comment, update the dictionaries with the user entered data. Use the item_name as the key in all dictionaries and store the appropriate data. o For example, if the user first entered the item name "Science Books" with an item count of 10, a unit cost of 12.95, and a description "First year textbook" this is what the dictionaries would look like: inventory_counts Books": 10} inventory_costs {"Science - = {"Science Books" 12.95} inventory_descriptions = {"Science Books": "First year textbook" At the third TODO comment, print the dictionaries.
Step by Step Solution
There are 3 Steps involved in it
python Create three empty dictionaries inventorycounts inventorycosts inventorydescriptions TODO ... View full answer
Get step-by-step solutions from verified subject matter experts
