KnowledgeBoat Logo
|

Informatics Practices

To create a new dictionary with no items:

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

Python Dictionaries

2 Likes

Answer

Both 2 and 3

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

Answered By

3 Likes


Related Questions