Computer Science
The keys of a dictionary must be of immutable types.
Python Dictionaries
2 Likes
Answer
True
Reason — Dictionaries are indexed by keys. Hence its keys must be of any non-mutable type.
Answered By
1 Like
The keys of a dictionary must be of immutable types.
2 Likes
True
Reason — Dictionaries are indexed by keys. Hence its keys must be of any non-mutable type.
Answered By
1 Like