Python Programming - Dictionaries - Discussion
Discussion Forum : Dictionaries - General Questions (Q.No. 8)
8.
How do you create a dictionary with a default value for all new keys?
Answer: Option
Explanation:
The
defaultdict
from the collections
module is used to create a dictionary with a default value for all new keys.
Discussion:
Be the first person to comment on this question !
Post your comments here:
Quick links
Quantitative Aptitude
Verbal (English)
Reasoning
Programming
Interview
Placement Papers