All immutable built-in objects in Python are hashable like tuples while the mutable containers like lists and dictionaries are not hashable. Objects which are instances of the user-defined class are hashable by default, they all compare unequal, and their hash value is their id().
What are the hashable types in Python?
Hashable data types: int , float , str , tuple , and NoneType . Unhashable data types: dict , list , and set .
Are Python dictionaries Hashtables?
Dictionaries in Python are built using hash tables and the open addressing collision resolution method.