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.
If your code solution is not working on Python 3 can change to Python 2 then code will properly and next thing Python 3 has negitive (-37) so don't work then comes to Python 2 has some chnage in that has given correct code sinppet.
if name == 'main':
n = int(raw_input())
integer_list = map(int, raw_input().split())
t = tuple(integer_list)
print(hash(t))
simple and clear code sinppet
consider the problem and have great solution in easy way
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 →
If your code solution is not working on Python 3 can change to Python 2 then code will properly and next thing Python 3 has negitive (-37) so don't work then comes to Python 2 has some chnage in that has given correct code sinppet. if name == 'main': n = int(raw_input()) integer_list = map(int, raw_input().split()) t = tuple(integer_list) print(hash(t)) simple and clear code sinppet
consider the problem and have great solution in easy way