CBSE Class 12 Computer Science Question 67 of 105

Python Revision Tour II — Question 16

Back to all questions
16
Question

Question 16

What type of objects can be used as keys in dictionaries ?

Answer

Keys of a dictionary must be of immutable types such as

  1. a Python string
  2. a number
  3. a tuple (containing only immutable entries)