Skip to main content

Practice · 1 of 1

CSV Round-Trip

CHALLENGE
Difficulty: beginner+25 XP

Implement to_csv(name, category, amount) producing "name,category,amount" (amount with one decimal), and from_csv(line) returning the amount (0.0 on any malformed line — no name, no category, unparseable amount).

Back to lesson: Practice: Capstone Practice: Milestone 3 Warm-up