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.
This is a bad problem. hash() isn't guaranteed to give any particular value. If you run your code under PyPy3, it will say "Correct", but if you run it under Python 3, you get "Incorrect". The value produced by hash() shouldn't be relied upon.
Cookie support is required to access HackerRank
Seems like cookies are disabled on this browser, please enable them to open this website
Tuples
You are viewing a single comment's thread. Return to all comments →
This is a bad problem. hash() isn't guaranteed to give any particular value. If you run your code under PyPy3, it will say "Correct", but if you run it under Python 3, you get "Incorrect". The value produced by hash() shouldn't be relied upon.