Vidyalelo
Python · Q36

MCQs for Python Dictionaries: Exam

Programming · Python · question 36

Q36

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

Answer: Option D

Solution

Answer: Option D
No explanation is given for this question Let's Discuss on Board