Part 3 · Section 10

Coding Exercises

Time to use the tools from the previous section on realistic problems. Each one is small, but each has a twist that makes the choice of dictionary type matter: results that must be sorted, entries that must exist even with a count of zero, and nested settings that a flat merge gets wrong.

The first page states all three problems. Try them on the practice page before reading the solution walkthroughs.

Lectures

  1. 01Exercises✓
  2. 02Exercise 1 - Solution✓
  3. 03Exercise 2 - Solution✓
  4. 04Exercise 3 - Solution✓

Practice: quiz & exercises

6 quiz questions · 4 coding exercises

Go to practice →