Examveda
Examveda

What will be the output of the following Python code?
>>> 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


This Question Belongs to Python Program >> Dictionary In Python

Join The Discussion

Related Questions on Dictionary in Python