DebugJuniorData / MLAuto-graded
Reconcile a bank ledger against a payments export
Normalise two transaction files and report what matches, what differs, what's missing and what's duplicated.A bank ledger and a payments export should list the same transactions, but they don't line up. The two files write dates and amounts differently, some transaction IDs appear twice, and some entries exist on only one side. Writereconcile.py so it reads both files, normalises the amounts and writes report.json in the format set out in report_format.md. It is checked on a fresh pair of files, so it has to work in general.20 min
python
You're done when
reconcile.pyruns to completion and writesreport.json.- Both files parse whatever their date format, and amounts are normalised before anything is compared.
- Mismatched amounts are reported as normalised numbers, so a
$sign or a thousands separator never counts as a difference. - A transaction ID that appears more than once in the same file is listed under duplicates and nowhere else.
- Transactions found on only one side are listed as missing from the other.
What it measures
Parsing messy dataReading two inconsistently formatted CSVs into comparable rows without losing any.
Real vs cosmetic differencesTelling an actual amount difference apart from a formatting one.
A usable reportListing each amount mismatch with both values, so someone in finance can follow it up.
Your environment
Terminal + editorA full shell in the browser
Coding agentAlready signed in, no API key to set up
Isolated workspaceOnly yours, wiped when you finish
Start this lab
20 min
Start labYou'll need to sign in to Anthropos first. The lab opens in a private cloud workspace with your coding agent ready to use.AI Labs is part of Anthropos Workforce. Not on your plan yet? Book a demo