What will be the output of the following Python code?
>>> import collections
>>> a=dict()
>>> a=collections.defaultdict(str)
>>> a['A']
>>> import collections
>>> a=dict()
>>> a=collections.defaultdict(str)
>>> a['A']
A. An exception is thrown since the dictionary is empty
B. ' '
C. 'A'
D. 0
Answer: Option B
Join The Discussion