CBSE Class 11 Computer Science Question 25 of 88

Tuples and Dictionary — Question 5

Back to all questions
5
Question

Question 5

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 = {}.