2
Question Question 2
What type of objects can be used as keys in dictionaries ?
Keys of a dictionary must be of immutable types such as
- a Python string
- a number
- a tuple (containing only immutable entries)
What type of objects can be used as keys in dictionaries ?
Keys of a dictionary must be of immutable types such as