Q.

Which of the following is not a declaration of the dictionary?

A. {1: ‘a’, 2: ‘b’}
B. dict([[1,”a”],[2,”b”]])
C. {1,”a”,2”b”}
D. { }
Answer» C. {1,”a”,2”b”}
Explanation: option c is a set, not a dictionary.
1.2k
0
Do you find this helpful?
1

Discussion

No comments yet