CBSE Class 11 Informatics Practices Question 22 of 66

Dictionary — Question 5

Back to all questions
5
Question

Question 5

To create a new dictionary with no items:

  1. Dict
  2. dict()
  3. d1={}
  4. Both 2 and 3
Answer

Both 2 and 3

Reason — The function dict() and d1 = {} are both used to create a new dictionary with no items.