Checkpoint: errors, files and JSON
Four problems on your own: read a messy file without crashing, save a JSON summary, trace try and finally, and find the log that forgets.
- The skill
- Read messy files without crashing and save results other programs can read.
- You make
- A score loader that skips junk lines and a JSON summary.
Premium lesson
£7.99 a month or £59 a year. Cancel any time.
Builds on 24 JSON: data that programs share. Free to try: Python Foundations and the playground.
Cleared
Go back to
You can now
Step 1 of 5
exercise_1.py
You've reached the good stuff.
4 exercises in this lesson, checked as you type. Premium opens every lesson after Foundations, in all four courses.
Python 3.13