1.

What is the output of the following piece of code when executed in Python shell? >>> import collections >>> a=collections.OrderedDict((str(x),x) for x in range(3)) >>> a

A. {‘2’:2, ‘0’:0, ‘1’:1}
B. OrderedDict([(‘0’, 0), (‘1’, 1), (‘2’, 2)])
C. An exception is thrown
D. ‘ ‘
Answer» C. An exception is thrown


Discussion

No Comment Found