CBSE Class 11 Computer Science Question 30 of 88

Tuples and Dictionary — Question 10

Back to all questions
10
Question

Question 10

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.