Skip to main content

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.

Back to lesson: Practice: JSON Persistence