1.

What is the output of the following piece of code when executed in Python shell? >>> import collections >>> a=dict() >>> a=collections.defaultdict(int) >>> a[1]

A. 1
B. 0
C. An exception is thrown
D. ‘ ‘
Answer» C. An exception is thrown


Discussion

No Comment Found