1.

What is the output of the following snippet of code? a={} a['a']=1 a['b']=[2,3,4] print(a)

A. Exception is thrown
B. {‘b’: [2], ‘a’: 1}
C. {‘b’: [2], ‘a’: [3]}
D. {‘b’: [2, 3, 4], ‘a’: 1}
Answer» E.


Discussion

No Comment Found