4 ms·
Are you maybe looking for a defaultdict? https://docs.python.org/3.7/library/collections.html#collections.defaultdict https://docs.python.org/3.7/library/collec
by ac29 8y ago
Are you maybe looking for a defaultdict? https://docs.python.org/3.7/library/collections.html#collections.defaultdict https://docs.python.org/3.7/library/collections.html#collect...
- basil-rash 8y agoI'm aware of defaultdict, but when I saw that method on dict I got excited because I thought it meant I didn't need defaultdict anymore.