CBSE Class 12 Computer Science Question 24 of 105

Python Revision Tour II — Question 3

Back to all questions
3
Question

Question 3

The keys of a dictionary must be of ............... types.

  1. integer
  2. mutable
  3. immutable
  4. any of these
Answer

immutable

Reason — Dictionaries are indexed by keys and its keys must be of any immutable type.