Computer Science, asked by subhamnayak396, 1 month ago

3. The keys of a dictionary must be of_types.
(a) integer
(b) mutable
(c) immutable​
(d) any of these

Answers

Answered by randomname91
3

Answer:

immutable

Explanation:

it can be integers,tuples,string but not lists because it is mutable

Answered by adventureisland
0

Option (C) is correct.

The keys of a dictionary must be of immutable types.

About Keys of dictionary :

  • A dictionary's keys must be immutable data types like texts, integers, or tuples, whereas the dictionary's content can be any data type.
  • A dictionary key requires an immutable type. For example, you may use an integer, float, text, or Boolean as a dictionary key.
  • Due to the fact that both lists and dictionaries are prone to change, neither can be utilized as a dictionary key.

Similar questions