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 Answers
+ 3
By identifying them when they are not in a dictionary, none of their features would change due to where they are
12th Jan 2020, 5:02 PM
Mirielle - avatar
+ 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 - 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