CBSE Class 12 Computer Science Question 47 of 105

Python Revision Tour II — Question 8

Back to all questions
8
Question

Question 8

The clear( ) removes all the elements of a dictionary but does not delete the empty dictionary.

Answer

True

Reason — The clear() method removes all items from the dictionary and the dictionary becomes empty dictionary post this method. del statement removes the complete dictionary as an object.