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.

  1. Count words
  2. Invert keys and values
  3. Get by dotted path
  4. Merge with defaults
  5. Group by a key function
  6. Set operators
  7. 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.

More Python topics

All Python exercises ยท Other languages and frameworks