0
How can we identify immutable objects in dictionary?
distinguish between immutable and mutable objects in dictionary
3 ответов
+ 2
Dictionaries are mutable.
Dictionary consists of keys and value pair.
Keys are immutable and values are mutable..
+ 2
Putting mutable values in sets raise errors, we can use exception handling and define a function to check whether it's mutable or not:
https://code.sololearn.com/cVNKcN7XM6qP/?ref=app