We use cookies to ensure you have the best browsing experience on our website. Please read our cookie policy for more information about how we use cookies.
We won't get expected result in Python 3 as Python 2 because it intentionally randomizes it for security, that means any solution using Python 3's hash() will produce a random number. Because there is a difference in Python 2's hash() and Python 3's hash().
Tuples
You are viewing a single comment's thread. Return to all comments →
We won't get expected result in Python 3 as Python 2 because it intentionally randomizes it for security, that means any solution using Python 3's hash() will produce a random number. Because there is a difference in Python 2's hash() and Python 3's hash().