Results and the cheat sheet fill in as you go. Nothing here is locked; come back whenever you like.
Next in this path: Nested data · 5 lessons · 55 min
Mastery by outcome
Each outcome is backed by the checks that test it. Solid means every check was right first time; with hints means you got there with a nudge; worth a revisit means an answer was revealed or is still wrong.
1
Make a dictionary of pairs, read a value by its key, and say what you get back when the key is not there.
Not yet
2
Add a pair, change a value, take a pair out, and say what the dictionary holds afterwards.
Not yet
3
Count things with a dictionary: one loop that adds one to the count of each word it meets.
Not yet
4
Use a set to keep each value once and to ask whether a value has been seen, and choose between a list, a dictionary and a set for a job.
Not yet
Your cheat sheet
What each lesson leaves you able to do, in one place. Lessons you have not finished are dimmed, not hidden.
Predict what a built-up dictionary holds, complete a counting loop, fix one that reads a key before it exists, choose the right shape for a job, and predict a set after repeats.