Q.

Which of the following statements create a dictionary?

A. d = {}
B. d = {“john”:40, “peter”:45}
C. d = {40:”john”, 45:”peter”}
D. all of the mentioned
Answer» D. all of the mentioned
Explanation: dictionaries are created by specifying keys and values.
3.2k
0
Do you find this helpful?
34

Discussion

No comments yet