Skip to main content
← CoursesPython for Office WorkersModule 1 · Excel & CSVRead a CSV with DictReaderwrite2 / 50
💬 Discuss🧪 Playground+75 XP
Task
Read the in-memory CSV `"item,qty\napple,3\nbanana,5\n"` with `csv.DictReader` and print `item: qty` for each row (one per line). Expected: apple: 3 banana: 5

Keep going

✏️ Write your code here
🐍
Loading Python...
First visit only — ~5-10s. Stays cached afterward.
📊 Result
Press Run to see result...
📣 Help someone learn PythonShare this lesson with a friend — the first 15 are free, no signup.Tweet

💬 Discussion

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