Home »
Python »
Python Dictionary MCQs
Which method is used to remove the entire dictionary?
21. Which method is used to remove the entire dictionary?
- pop()
- delete()
- delete_all()
- clear()
Answer: D) clear()
Explanation:
The clear() method is used to delete the entire dictionary.