Beginner · 25 min · 4 steps
Reordering stock before the shelf runs empty
Priya Nair, Inventory Systems Engineer at SpeedyGrocery
Priya Nair is an engineer for stock systems at SpeedyGrocery, a quick-delivery grocery app with 85 dark stores (small warehouses that only pack online orders) in Bengaluru, Mumbai and Delhi. It is 8:15 AM on Saturday. The regional manager has raised an alert: forty-two dark stores in Bengaluru ran out of milk, bread and eggs before 8:00 AM.
The question
How do we write a Python check that tells us when to reorder each product, using how fast it sells and how long the supplier takes, so that we do not run out?
- Threshold alerting
- Safety stock math
- Defensive aggregation
- Inventory reordering
The rest of this case study is locked
The data, every step with its code and result, and the final answer open with a pass. A few case studies stay free so you can see how they work.