Python Programming - Dictionaries - Discussion

Discussion Forum : Dictionaries - General Questions (Q.No. 26)
26.
What does the dictionary.clear() method do?
Removes a specific key-value pair.
Removes all items from the dictionary.
Clears the values of the dictionary.
Deletes the dictionary itself.
Answer: Option
Explanation:
The clear() method removes all items from a dictionary.
Discussion:
Be the first person to comment on this question !

Post your comments here:

Your comments will be displayed after verification.