Computer Science
The keys of a dictionary must be of …………… types.
- integer
- mutable
- immutable
- any of these
Python Dictionaries
5 Likes
Answer
immutable
Reason — Dictionaries are indexed by keys and its keys must be of any immutable type.
Answered By
2 Likes
Related Questions
The numbered position of a letter in a string is called ……………
- position
- integer position
- index
- location
The operator …………… tells if an element is present in a sequence or not.
- exists
- in
- into
- inside
Following set of commands is executed in shell, what will be the output?
>>>str = "hello" >>>str[:2] >>>- he
- lo
- olleh
- hello
What data type is the object below ?
L = [1, 23, 'hello', 1]- list
- dictionary
- array
- tuple