If I have d=dict(zip(range(1,10),range(50,61))) how can I build a collections.defaultdict out of the dict?
d=dict(zip(range(1,10),range(50,61)))
collections.defaultdict
dict
The only argument
defaultdict is a method from collections which does not return key error when element is not present.
defaultdict