Python Programming - Standard Libraries - Discussion

Discussion Forum : Standard Libraries - General Questions (Q.No. 40)
40.
What is the purpose of the collections.defaultdict class?
Sorting elements in a list
Creating a dictionary with default values for missing keys
Working with regular expressions
Handling dates and times
Answer: Option
Explanation:
The collections.defaultdict class in Python is used to create dictionaries with default values for missing keys.
Discussion:
Be the first person to comment on this question !

Post your comments here:

Your comments will be displayed after verification.