This is especially useful For anyone who is dealing with dictionaries that always consist of the identical facts sorts or constructions, by way of example a dictionary of lists. >>> from collections import defaultdict By way of example, if the method is in a library and you want to disguise the small print from the library in the contacting code