Vidyalelo
Python · Q9

MCQs for Python Dictionaries: Exam

Programming · Python · question 9

Q9

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

A.
Returns a list of all keys in the dictionary
Answer
B.
Returns a list of all values in the dictionary
C.
Returns a list of all items in the dictionary
D.
Returns a list of all keys and values in the dictionary

Answer: Option A

Solution

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