Input Format
The first line contains an integer, , denoting the number of elements in the tuple.
The second line contains  space-separated integers describing the elements in tuple .
Output Format
Print the result of .
hackerrank tuples problem solution in python

Problem solution in python 2 programming language.

n = raw_input()
print hash(tuple([int(i) for i in raw_input().split()]))

Problem solution in python 3 programming language.

n = input()
print hash(tuple([int(i) for i in input().split()]))

second solution

if __name__ == '__main__':
    n = int(input())
    integer_list = map(intinput().split())
    tup = ()
    for x in integer_list:
        tup+=(x,)
    print(hash(tup))