Skip to main content
🔒 Preview mode. The first 15 Foundations lessons are free; this one is Pro. Start a 7-day trial to unlock the editor, AI hints and the rest of the curriculum. Card required, cancel any time in Dashboard.Start 7-day trial →
← CoursesPython FoundationsModule 9 · Bonus: mini-projectsMINI: JSON → CSV converter (flatten nested dicts)mission174 / 174
+200 XP
Task
Implement `flatten(d, prefix="")` and `json_to_csv(records)`. Run on 2 records and print the CSV. Expected (CSV uses CRLF line endings per RFC 4180): name,user.email,user.id Ada,ada@x.com,1 Bob,bob@y.com,2
✏️ Write your code here
🐍
Loading Python...
One-time download (~1 MB). Then it runs instantly.
📊 Result
Press Run to see result...

💬 Discussion

Be the first to ask a question or share a tip.
Sign in to join the discussion. Reading is free.
Loading discussion…