Hacker Rank Tuple Problem

Hi Everyone,

I need your Help. I am new to Python and come across this Hacker Rank Tuple Problem and want to write this as simplest as possible.

Q. Given an integer, n, and n space-separated integers as input, create a tuple, t, of those n integers. Then compute and print the result of hash(t).

My Code :- (But its throwing error as per Hacker Rank)

n = int(input())
t = tuple(map ( int , input().split()))
print(hash(t))

Hey Thanks Randell,

Yes it is working for Pypy3 , Most probably there is a bug, otherwise it should be passed in Python 3 as well.

This topic was automatically closed 182 days after the last reply. New replies are no longer allowed.