1.

What is the output of the following code? a={1:"A",2:"B",3:"C"} a.setdefault(4,"D") print(a)

A. {1: ‘A’, 2: ‘B’, 3: ‘C’, 4: ‘D’}.
B. None.
C. Error.
D. [1,3,6,10].
Answer» B. None.


Discussion

No Comment Found