2 ms·
> A bit inefficient in the dictionary comprehension, but easy to read. If you allow one import to sneak in, I think a `defaultdict` would do nicely. :-)
by burntsushi 13y ago
> A bit inefficient in the dictionary comprehension, but easy to read.
If you allow one import to sneak in, I think a `defaultdict` would do nicely. :-)