KnowledgeBoat Logo
|

Informatics Practices

Which function is used to remove all items from a particular dictionary?

  1. clear()
  2. pop()
  3. delete()
  4. rem()

Python Dictionaries

2 Likes

Answer

clear()

Reason — The clear() function is used to remove all items from the particular dictionary and returns an empty dictionary.

Answered By

2 Likes


Related Questions