Computer Science, asked by ashauthiras, 5 months ago

What type of objects can be used as keys in dictionaries? Also explain why?
pls tell correct answer ​

Answers

Answered by ranjaysharma92506594
7

Answer:

For example, you can use an integer, float, string, or Boolean as a dictionary key. However, neither a list nor another dictionary can serve as a dictionary key, because lists and dictionaries are mutable. Values, on the other hand, can be any type and can be used more than once.

Answered by krishbhardwaj646
5

Answer:

You can use an integer , float, string or boolean as a dictionary key. however, neither a list nor another dictionary can serve as dictionary key , because lists and dictionaries are mutable . values can be any type and can be used more than once

Similar questions