Vidyalelo
Python · Q12

MCQs for Python Dictionaries: Exam

Programming · Python · question 12

Q12

What is the purpose of the items() method for dictionaries?

A.
Returns a list of key-value pairs in the dictionary
Answer
B.
Returns a list of keys in the dictionary
C.
Returns a list of values in the dictionary
D.
Returns a list of items in the dictionary

Answer: Option A

Solution

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