> masteringswe_
codingpython

defaultdict - with a list

Define an empty defaultdict , def_dict, where missing keys default to an empty list. Import the defaultdict as well.