Skip to content

Latest commit

 

History

History
9 lines (5 loc) · 373 Bytes

File metadata and controls

9 lines (5 loc) · 373 Bytes

Defaultdict

  • Defaultdict is a container-like dictionaries present in the module collections. It is a sub-class of the dictionary class that returns a dictionary-like object. The difference from dictionary is, It provides a default value for the key that does not exist and never raises a KeyError.

Examples