CBSE Class 11 Informatics Practices Question 24 of 66

Dictionary — Question 7

Back to all questions
7
Question

Question 7

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

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

clear()

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