Vidyalelo
Python · Q21

MCQs for Python Dictionaries: Exam

Programming · Python · question 21

Q21

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

A.
Returns a list of all values in the dictionary
Answer
B.
Returns a list of all keys in the dictionary
C.
Returns a list of key-value pairs 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