Checkpoint
One last thing before we move on. Same surface as a write step — but the lesson doesn't complete until this passes.
Checkpoint: the staff-meeting table — receipt lines, then a total that only sums rows the lint let through.
Write process_receipts(rows) that prints one line per row, then
a summary:
- Line format via the last step's
write_receipt:{id}: READY — {n}h, ${d}or{id}: BLOCKED — {reasons}. - After the rows:
defendable: {n} rows, {h}h, ${d}counting ONLY READY rows. Blocked rows stay named on their own lines and do not join the total.
Expected output:
R-61: READY — 3h, $255
R-62: BLOCKED — no owner
R-63: BLOCKED — not accepted
R-64: READY — 4h, $340
defendable: 2 rows, 7h, $595