+ 1
What is hashable and mutable in python ?
What is the main difference between hashable and mutable in python ?
5 Answers
+ 2
Seb TheS if i'm not mistaken, you've defined immutable not mutable. [FIXED]
Deepak Bhamla
Mutable are those that can be changed and modified (e.g: lists in python). Hashable objects are fixed values objects, all hashable objects are immutables but not all immutables are hashable objects. (e.g: dictionary keys are hashable, tuples are "usually" hashables).
-My definitions and examples are mainly python.
+ 3
Mo Hani thsnks
+ 2
Mo Hani fixed
+ 1
Same here
+ 1
Mutable object is an object, whose values can be changed its after object's creation.
I don't know what is hashable, hashtable? Hashtable is an array, whose values can be indexed with keys of any datatype.
Hot today
I have made a calculator in which my % (Percentage) not work correctly for 100%50 or 100%20.
3 Votes
Python palindrome challenge.
1 Votes
Java
0 Votes
Number of Ones ( C++ ) question!
1 Votes