Skip to main content

Practice · 1 of 2

Acceptance: Persistence with Fallback

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).

Difficulty: beginner

Back to lesson: Practice: Capstone: Final Readiness