Vidyalelo
Python · Q5

MCQs for Python Dictionaries: Exam

Programming · Python · question 5

Q5

What is the purpose of the dict() constructor in Python?

A.
Creates a new dictionary
Answer
B.
Converts a list to a dictionary
C.
Converts a tuple to a dictionary
D.
Converts a string to a dictionary

Answer: Option A

Solution

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