1.

What is the output of the following piece of code when executed in Python shell? >>> 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» C. ‘A’


Discussion

No Comment Found