Dictionary key must be immutable true or false
Answers
Answered by
2
true is the answer of the question
Answered by
1
The statement is true. The dictionary key is immutable in nature.
- The dictionary itself is an abstract datatype.
- In this it contains a group of data with the different data types.
- And each data is stored as a key-value pair, that key is used to identify that data.
- We can add or replace values of the dictionary, it is mutable.
- But the key associated with the dictionary can't be changed.
- Therefore, the keys are immutable or unique.
Similar questions