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).
Note: hash() is one of the functions in the __builtins__ module, so it need not be imported.
Input Format
The first line contains an integer, n, denoting the number of elements in the tuple.
The second line contains n space-separated integers describing the elements in tuple t.
Output Format
Print the result of hash(t).
Sample Input 0
2 1 2
Sample Output 0
3713081631934410656
Tuples in Python – Hacker Rank Solution
Tags:
python (basic) skills certification test hackerrank solution | hackerrank python (basic certification solutions) | hackerrank python certification solutions | python multiset implementation hackerrank solution | python get additional info | hackerrank solution | hackerrank python solution if-else | hackerrank solutions python 30 days of code | hackerrank python solutions loops | 2021
ConversionConversion EmoticonEmoticon