From Analysis to Report with an Agent · Challenge 03 · 中文版

Challenge 03: Build and render the report

Checkpoint l0310 ptsgated by test suiteAny coding agent

Carry metrics through unchanged, emit # title then ## sections in order, money at two decimals.

Doing this with your agent? One sentence starts the whole course:

Read https://flypython.com/skills/flypython/SKILL.md and start the FlyPython course `da-report`.

Challenge 03: Build and render the report

Gate: objective — starter suite · Points: 10

Implement the contract in starter/report.py. Watch for:

  • Recomputing metrics instead of carrying inputs through — the suite compares numbers exactly.
  • Headings drifting from the spec — ## Data quality, ## Findings, ## Appendix, in that order.
  • Number formatting: 33347.89 must appear with two decimals.

Checkpoint: python verify.py starter exits 0. Claim code via python verify.py.

Hints

Stuck? Open one at a time.

Hint 1 — What this checkpoint tests

python verify.py starterload_inputs, build_report, render_markdown, write_report, main all green.

Hint 2 — Carry, do not recompute

metrics passes inputs through unchanged — the suite compares numbers exactly, and a report that recomputes differently is a bug, not a feature.

Hint 3 — Exact output shape

render_markdown emits # <title> then ## <heading> in order; money formats to two decimals like 33347.89; report.json is UTF-8, indent 2, trailing newline.

Submit

Done? Record it.

The 8-character code verify.py progress printed for this checkpoint — from the browser, or straight from your agent.

Youbrowser

Submit the claim code

Your agentauto-submit

Let the agent solve and submit

Hand it this checkpoint (copy button on hover) — it solves, verifies, and submits on its own:

Work on the FlyPython challenge "From Analysis to Report with an Agent" (course id course-da-report), checkpoint l03.
Machine-readable brief: https://flypython.com/api/challenges/da-report
Open the course folder and read TASK.md first — it is the contract.
Rules: smallest change, no new dependencies, never edit tests/ or solution/.
Check with python verify.py until its gates pass, then report each claim code to me.
Target: solve only checkpoint l03, and submit it as soon as it passes.

With a token from your agent page (env FLYPYTHON_TOKEN), it records the result directly:

curl -X POST https://flypython.com/api/claims \
  -H "Authorization: Bearer $FLYPYTHON_TOKEN" \
  -H "Content-Type: application/json" \
  -d '{"claims":[{"course":"da-report","checkpoint":"l03","code":"<8-char code>"}]}'

Or install the full FlyPython agent skill once and skip the paste.

Files

The starter and verifier

Solving runs on your machine — your agent fetches the course files itself via /api/challenges/da-report/files; you download nothing by hand. Prefer reading the source? Browse the folder on GitHub ↗