Practice · 2 of 3
Save Contacts
CHALLENGE
Difficulty: beginner+25 XP
contacts is given (a dict of name -> phone). Save it as JSON into contacts.json with ensure_ascii=False and indent=2. The test loads the file back and compares.
Press Submit to check your solution.
Back to lesson: Practice: JSON Persistence