Home »
Python »
Python Dictionary MCQs
What does the dict.values() method do?
26. What does the dict.values() method do?
- It returns all the keys of the dictionary as a tuple
- It returns all the keys and pairs of the dictionary as a tuple
- It returns all the pairs of the dictionary as a tuple
Answer: C) It returns all the pairs of the dictionary as a tuple
Explanation:
The dict.values() returns all pairs of the dictionary as a tuple.