Python Func Hash
# Python2.x Python hash() Function
[ Python Built-in Functions](#)
* * *
## Description
**hash()** is used to obtain the hash value of an object (such as a string or number).
## Syntax
hash syntax:
hash(object)
Parameter explanation:
* object -- The object;
## Return Value
Returns the hash value of the object.
## Example
The following example demonstrates the usage of hash:
>>>hash('test')# String 2314058222102390712>>>hash(1)# Number 1>>>hash(str([1,2,3]))# Collection 1335416675971793195>>>hash(str(sorted({'1':1})))# Dictionary 7666464346782421378>>>
[ Python Built-in Functions](#)
YouTip