Python Programming - Dictionaries - Discussion

Discussion Forum : Dictionaries - General Questions (Q.No. 10)
10.
How do you remove all items from a dictionary?
dictionary.delete_all()
dictionary.clear()
dictionary.remove_all()
dictionary.erase()
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.