Which of the following can be used as a dictionary key?
Explanation
The only requirement to Python dictionary key is that it should be immutable, ie it cannot be modified after its definition.
Sets, lists, and dictionaries are mutable objects in Python while tuples, numbers, and strings are immutable.

Слідкуй за CodeGalaxy

Мобільний додаток Beta

Get it on Google Play
Зворотній Зв’язок
Продовжуйте вивчати
тести з Python
Cosmo
Зареєструйся Зараз
або Підпишись на майбутні тести