Advertisements
Advertisements
Question
Which of the following built-in function/method returns a dictionary?
Options
dict()keys()
values()
items()
MCQ
Advertisements
Solution
dict()
Explanation:
The dict() function creates an empty dictionary and returns the memory handle of the dictionary created to the variable on the left.
shaalaa.com
Is there an error in this question or solution?
