T24 Refactor plus README
Category: Code. Pass at at least 3/4.
Prompt
Refactor report.py: remove duplication into functions, keep behaviour identical, and add a README.md explaining usage. Prove behaviour is identical by running it before and after.
Inputs
Files attached to the chat:
Checklist
Pass at at least 3/4.
- Output of `python3 report.py` byte-identical before and after
- Duplication gone (no block repeated 3 times)
- README.md with usage
- No new dependencies
The answer key is not published while the task set is in use.