Skip to content

Glossary: Data Structures and Algorithms

Hashable

Also written: unhashable

Able to be used as a dict key or set item because its hash never changes: strings, numbers and tuples of hashable items. Lists are unhashable because they can change.

Where the book teaches it

Related terms

Hash functionImmutable