Question: In the Pycharm editor, write a program in the Python language to process inventory for multiple grocery stores. Sample output follows. Create a list store

In the Pycharm editor, write a program in the Python language to process inventory for multiple grocery stores.
Sample output follows.
Create a list store_records whose elements are three lists (indexed 0,1,2). Each element (a list) has three elements: One is the store's name, one is a list of featured products, and one is the corresponding amount of each product in stock. Assign store_records to be a list with the elements
['Market Basket', ['corn flakes', 'white bread', 'pop rocks'],[800,1000,100]]
['Star Market', ['bagels', 'cheetos', 'coffee cake'],[850,400,100]]
['Roche Bros', ['wings', 'apples', 'brownies'],[100,2000,100]]
For one of the stores, print how much of one of the items is in stock. Use an f -string and indexing.
Update the inventory for the item: Change the amount to be less, after some of the inventory is sold. Use indexing to modify the list (overwrite an "old amount" with a reduced amount).
Print a summary of the change in items in stock. Use an f-string andindexing.
5. If the inventory for the item has dropped below 100, print a message that says to order more. If the inventory is still at least 100 for the item, print a message that says the inventory is still adequate. Use if statements.
6. Use a for loop to append all of the products into a list grocery_items.
7. Sort the list of grocery_items and print it to show the products featured at the grocery stores.
SAMPLE OUTPUT
Market Basket has corn flakes: 800.
Sell 100 items.
Market Basket has corn flakes: 700.
Inventory is still adequate.
Featured products are:
['apples', 'bagels', 'brownies', 'cheetos', 'coffee cake', 'corn flakes', 'pop rocks', 'white bread', 'wings']
In the Pycharm editor, write a program in the

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 Programming Questions!