CBSE Class 11 Informatics Practices Question 19 of 66

Dictionary — Question 2

Back to all questions
2
Question

Question 2

To create an empty dictionary, we use the statement as:

  1. d1 = {}
  2. d1 = []
  3. d1 = ()
  4. d1 == {}
Answer

d1 = {}

Reason — The statement to create an empty dictionary in Python is d1 = {}.