Python hash() built-in function

From the Python 3 documentation

Return the hash value of the object (if it has one). Hash values are integers. They are used to quickly compare dictionary keys during a dictionary lookup. Numeric values that compare equal have the same hash value (even if they are of different types, as is the case for 1 and 1.0).

Examples

>>> hash(1)
# 1
>>> hash('1')
# -3658718886659147670
>>> hash('10')
# 5216539490891759533

Ups! Nothing here yet!

This is a great opportunity for you to collaborate! Hit the link at the end of this page and add some examples and a brief description. If you don't know where to start, the Python 3 documentation will lead you in the right direction.

Subscribe to pythoncheatsheet.org

A bullshit free publication, full of interesting, relevant links.