Informatics Practices

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

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

Python Dictionaries

1 Like

Answer

clear()

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

Answered By

3 Likes


Related Questions