0 / 34

Invite others

Progress

0 / 34

Inventory Management

📋 Context

You manage inventory for a small store with 6 products across 3 warehouse locations. You need to track stock levels, find shortages, and calculate reorder quantities.

1
2
3

Step 1: Stock Levels

🎯 Task

Create stock — a (3, 6) array representing 3 warehouses × 6 products:
[[50,0,30,100,15,80],[20,45,0,60,5,35],[0,25,55,40,0,90]]
Create product_names = ['Widget','Gadget','Gizmo','Doohickey','Thingamajig','Whatchamacallit']. Print stock.

np.array for stock, np.array for names
exercise.py
⌘⏎ run · ⌘← → nav
Output
Run your code to see output here.