The Python defaultdict type is a dictionary-like data structure provided by the Python standard library in a module called collections. The class inherits from dict, and its main added functionality is to supply default values for missing keys. In this course, you’ve learned how to use the Python defaultdict type for handling the missing keys in a dictionary.
You’re now able to:
- Create and use a Python
defaultdictto handle missing keys - Solve real-world problems related to grouping, counting, and accumulating operations
- Know the implementation differences between
defaultdictanddict - Decide when and why to use a Python
defaultdictrather than a standarddict

Ghani on Nov. 22, 2020
Very good course; thanks!