lesson 3 of 4 · five postmortems — three public, two composite — and the one fix that would have caught all of themfive postmortems — three public, two composite — and the one fix that would have caught all of themfive postmortems — three public, two composite — and the one fix that would have caught all of themfive postmortems — three public, two composite — and the one fix that would have caught all of themfive postmortems — three public, two composite — and the one fix that would have caught all of themfive postmortems — three public, two composite — and the one fix that would have caught all of themlesson 3 of 4 · five postmortems — three public, two composite — and the one fix that would have caught all of themfive postmortems — three public, two composite — and the one fix that would have caught all of themfive postmortems — three public, two composite — and the one fix that would have caught all of themfive postmortems — three public, two composite — and the one fix that would have caught all of themfive postmortems — three public, two composite — and the one fix that would have caught all of themfive postmortems — three public, two composite — and the one fix that would have caught all of themlesson 3 of 4 · five postmortems — three public, two composite — and the one fix that would have caught all of themfive postmortems — three public, two composite — and the one fix that would have caught all of themfive postmortems — three public, two composite — and the one fix that would have caught all of themfive postmortems — three public, two composite — and the one fix that would have caught all of themfive postmortems — three public, two composite — and the one fix that would have caught all of themfive postmortems — three public, two composite — and the one fix that would have caught all of themlesson 3 of 4 · five postmortems — three public, two composite — and the one fix that would have caught all of themfive postmortems — three public, two composite — and the one fix that would have caught all of themfive postmortems — three public, two composite — and the one fix that would have caught all of themfive postmortems — three public, two composite — and the one fix that would have caught all of themfive postmortems — three public, two composite — and the one fix that would have caught all of themfive postmortems — three public, two composite — and the one fix that would have caught all of themlesson 3 of 4 · five postmortems — three public, two composite — and the one fix that would have caught all of themfive postmortems — three public, two composite — and the one fix that would have caught all of themfive postmortems — three public, two composite — and the one fix that would have caught all of themfive postmortems — three public, two composite — and the one fix that would have caught all of themfive postmortems — three public, two composite — and the one fix that would have caught all of themfive postmortems — three public, two composite — and the one fix that would have caught all of themlesson 3 of 4 · five postmortems — three public, two composite — and the one fix that would have caught all of themfive postmortems — three public, two composite — and the one fix that would have caught all of themfive postmortems — three public, two composite — and the one fix that would have caught all of themfive postmortems — three public, two composite — and the one fix that would have caught all of themfive postmortems — three public, two composite — and the one fix that would have caught all of themfive postmortems — three public, two composite — and the one fix that would have caught all of themlesson 3 of 4 · five postmortems — three public, two composite — and the one fix that would have caught all of themfive postmortems — three public, two composite — and the one fix that would have caught all of themfive postmortems — three public, two composite — and the one fix that would have caught all of themfive postmortems — three public, two composite — and the one fix that would have caught all of themfive postmortems — three public, two composite — and the one fix that would have caught all of themfive postmortems — three public, two composite — and the one fix that would have caught all of themlesson 3 of 4 · five postmortems — three public, two composite — and the one fix that would have caught all of themfive postmortems — three public, two composite — and the one fix that would have caught all of themfive postmortems — three public, two composite — and the one fix that would have caught all of themfive postmortems — three public, two composite — and the one fix that would have caught all of themfive postmortems — three public, two composite — and the one fix that would have caught all of themfive postmortems — three public, two composite — and the one fix that would have caught all of themlesson 3 of 4 · five postmortems — three public, two composite — and the one fix that would have caught all of themfive postmortems — three public, two composite — and the one fix that would have caught all of themfive postmortems — three public, two composite — and the one fix that would have caught all of themfive postmortems — three public, two composite — and the one fix that would have caught all of themfive postmortems — three public, two composite — and the one fix that would have caught all of themfive postmortems — three public, two composite — and the one fix that would have caught all of themlesson 3 of 4 · five postmortems — three public, two composite — and the one fix that would have caught all of themfive postmortems — three public, two composite — and the one fix that would have caught all of themfive postmortems — three public, two composite — and the one fix that would have caught all of themfive postmortems — three public, two composite — and the one fix that would have caught all of themfive postmortems — three public, two composite — and the one fix that would have caught all of themfive postmortems — three public, two composite — and the one fix that would have caught all of themlesson 3 of 4 · five postmortems — three public, two composite — and the one fix that would have caught all of themfive postmortems — three public, two composite — and the one fix that would have caught all of themfive postmortems — three public, two composite — and the one fix that would have caught all of themfive postmortems — three public, two composite — and the one fix that would have caught all of themfive postmortems — three public, two composite — and the one fix that would have caught all of themfive postmortems — three public, two composite — and the one fix that would have caught all of them
Checkpoint
One last thing before we move on. pass this to mark the lesson done, or skip and keep moving. hop to the next when you're ready.
Final drill. You have five postmortem records from the inbox. Each
one already carries a class field (1-4) and a severity field
(1-10, where 10 is "front-page lawsuit").
Write triage_failures(cases) that returns a dict with two keys,
in this exact order:
counts: a dict mapping class number (int) to count (int), with keys inserted in ascending class order (1, 2, 3, 4). Classes with zero count are omitted.urgent: thename(str) of the case with the highest severity. On a tie, return the FIRST one encountered (stable order).
Five cases run for you. Expected output:
{'counts': {1: 1, 2: 1, 3: 2, 4: 1}, 'urgent': 'air_canada'}