ABC Inventory Analysis

easy
Unit 8 · Metrics0/3 to milestone

Classify products by their share of revenue: sort by revenue (descending, ties by name), compute each product's cumulative share including itself, then:

  • A: cumulative share up to and including 80%
  • B: above 80% up to 95%
  • C: the rest

The first product is always A. Implement abc_classes(revenue) taking a dict {product: revenue} and returning a dict {product: class}.

#operations#pareto2 visible + 1 hidden tests
solution.py · Python 3.13
Loading editor…
Run your code to see results. ⌘↵ to run · ⌘⇧↵ to submit
ABC Inventory Analysis · TechGradify