Python: The Dictionary Playbook

awesome

using defaultdict for sparse data doesn’t sound like a good idea as it means your dictionary grows each time you access an index while with sparse data you don’t want to store data for indices with the default value