Skip to main content

Practice · 1 of 2

Acceptance: Persistence with Fallback

CHALLENGE
Difficulty: beginner+25 XP

Build save_expenses(path, expenses) + load_expenses(path): JSON roundtrip with ensure_ascii=False; missing file -> []; corrupt file -> []. Then demonstrate: save one Vietnamese-noted expense ("cà phê"), load it back, and print the LOADED amount (one line).

Back to lesson: Practice: Capstone: Final Readiness