Computer Science
To create a new dictionary with no items:
- Dict
- dict()
- d1=[]
- None of these
Python Dictionaries
1 Like
Answer
dict()
Reason — The function dict() is used to create a new dictionary with no items.
Answered By
1 Like
Related Questions
In a dictionary, the elements are accessed through:
- Key
- Value
- Index
- None of these
Keys of a dictionary must be:
- Similar
- Unique
- Both (i) and (ii)
- All of these
Which function is used to return a value for the given key?
- len()
- get()
- keys()
- None of these
Which function is used to remove all items from a particular dictionary?
- clear()
- pop()
- delete()
- rem()