Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

hash function in Python

# hash for integer unchanged
print('Hash for 181 is:', hash(181))
# hash for decimal
print('Hash for 181.23 is:',hash(181.23))
# hash for string
print('Hash for Python is:', hash('Python'))
Source by www.edureka.co #
 
PREVIOUS NEXT
Tagged: #hash #function #Python
ADD COMMENT
Topic
Name
1+9 =