Or you could use `defaultdict` from the `collections` module.