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

Fill in the collections class.

from collections import ____  # dict with automatic defaults

Answer: defaultdict (also accepted: defaultdict)

defaultdict builds a missing value instead of raising KeyError.
Play Problem Solving ▸