+ 1

I want to know weather if we could change a word into it's hash code using Python ??

I want to know weather if we could change a word into it's hash code using Python ?? If there is please comment me. And also I want to mention that this is not a home work or something like that. I just want to know is there a way to do that and how????

27th Jan 2021, 3:45 PM
K.S.S. Karunarathne
K.S.S. Karunarathne - avatar
2 Réponses
27th Jan 2021, 3:56 PM
ChaoticDawg
ChaoticDawg - avatar
+ 2
A quick search reveals: it is built in and simply called hash() To read more: https://www.askpython.com/JUMP_LINK__&&__python__&&__JUMP_LINK/built-in-methods/python-hash-function Use like this: print(hash("test"))
27th Jan 2021, 3:54 PM
Benjamin Jürgens
Benjamin Jürgens - avatar