$ ./guess_the_languageProblem Solving — fill the blank
Problem Solving — fill the blank · medium · #261

What goes in the blank?

from collections import defaultdict
groups = ____(list)
for w in words:
    groups[len(w)].append(w)

Answer: defaultdict (also accepted: defaultdict, defaultdict())

The factory builds a fresh list on first access, so no key check is needed.
Play Problem Solving ▸