Dicts & Sets in Python: interview exercises
Dicts & Sets in Python: 7 test-checked interview exercises (Count words, Invert keys and values), each beside a worked example, with tests as you go. Free.
- Count words
- Invert keys and values
- Get by dotted path
- Merge with defaults
- Group by a key function
- Set operators
- Top k most frequent
Each exercise pairs a worked example with a twin problem to solve in a real editor; the tests run the moment you do. Progress is saved in your browser, and in your account if you sign in.