Python hash() function

The hash() function in Python returns the hash value of the object (if it has one). 

Syntax

Parameter

obj : This parameter represents the object which we need to convert into hash.

Return

This function returns the hashed value. 

Example 1

Output

 

Pin It on Pinterest

Share This