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))