Question: Please write in Python and note restrictions / guidelines thank you. Restrictions Allowed Things: - The, ( + + = ) , and

Please write in Python and note restrictions/guidelines thank you.
Restrictions
Allowed Things:
- The,\(++=\), and all numeric operators
- in operator
- break and continue
- str(), int(), float(), range(), len(), append(), and index() functions
Disallowed Things:
- import anything.
- list slicing.
- string formatting or string indexing (string[index]) or the list() function.
- input()function.
- lambda expressions, dictionaries or any other Python features not covered in class
Review the restriction section for each function to determine if any additional limitations or requirements need to be applied to that specific function. Tasks
Your startup company is developing a new system for autonomous grocery inventory management. You are creating software that allows both human operators and AI systems to control robots responsible for moving inventory items. To begin, you develop a proof of concept (POC): a simple system to manage the inventory in a single row. The row is represented by a list of items.
To achieve this, you need to implement five distinct functions described below. Each function is worth 9 points. def calculate_inventory_value(inventory, price_list):
Description: This function accepts the current inventory list (including items/products and their quantities) and a list of items/products with their prices. It calculates and returns the total retail value of the inventory.
Parameters:
inventory (a list of strings and integers) reflects the current items and their quantities in the inventory.
item_1ist (a list of strings and floats) indicates the list of items and their prices.
Assumptions: There are no duplicate items in any of the input lists. The inventory or price_1ist may be empty. If an item's name is not found in the price_list, its price should be assumed to be 0.
Return value: (a floating-point number) representing the total retail value of the inventory. Examples:
```
inventory =['Apple',50, 'Pineapple', 20, 'Orange', 10]
price_list =['Apple',0.5, 'Orange', 0.4, 'Pineapple', 1, 'Bread', 0.6]
calculate_inventory_value(inventory, price_list)\}\boldsymbol{>}\mathbf{49.0
```
\# Explanation: We have 50 apples, 20 pineapples, and 10 oranges in the inventory, each costing \(0.5,1\), and 0.4 dollars respectively. Therefore, the total value of the current inventory is 49.0 dollars.
```
inventory =['Apple',10, 'Pineapple', 5, 'Orange', 10, 'Bread', 30]
price_list =['Apple',1, 'Orange', 0.4, 'Bread', 0.6, 'Grapes', 0.8]
calculate_inventory_value(inventory, price_list)>
```
\# Explanation: We have 10 apples, 5 pineapples, 10 oranges, and 30 breads in the inventory, each costing \(1,0,0.4\) and 0.6 dollars respectively. Therefore, the total value of the current inventory is 32.0 dollars.
```
inventory =[]
price_list =['Grapes',0.5, 'Diaper', 10, 'Bread', 0.6, 'Onion', .44]
calculate_inventory_value(inventory, price_list)}->
```
Please write in Python and note restrictions /

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!