0

How can we identify immutable objects in dictionary?

distinguish between immutable and mutable objects in dictionary

12th Jan 2020, 5:00 PM
Giridhar Sharma
Giridhar Sharma - avatar
3 Respostas
+ 2
Dictionaries are mutable. Dictionary consists of keys and value pair. Keys are immutable and values are mutable..
12th Jan 2020, 8:18 PM
Dheeraj
Dheeraj - avatar
+ 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
12th Jan 2020, 9:27 PM
Seb TheS
Seb TheS - avatar