KnowledgeBoat Logo

Computer Science

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

Python Dictionaries

3 Likes

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.

Answered By

2 Likes


Related Questions