What does it mean for an object to be hashable?
Built-in data types
Audio flashcard · 0:14Nortren·
What does it mean for an object to be hashable?
0:14
An object is hashable if it has a hash value that does not change during its lifetime, and if it can be compared to other objects. Hashable objects must implement both dunder hash and dunder eq. Immutable built-in types are hashable, while mutable collections like lists and dicts are not.
docs.python.org