Python Programming - Dictionaries - Discussion

Discussion Forum : Dictionaries - General Questions (Q.No. 7)
7.
What is the purpose of the dictionary.items() method?
Returns a list of all keys.
Returns a list of all values.
Returns a list of key-value pairs.
Returns a list of default values.
Answer: Option
Explanation:
The items() method returns a list of key-value pairs in the dictionary.
Discussion:
Be the first person to comment on this question !

Post your comments here:

Your comments will be displayed after verification.