Skip to content

Commit 5e6b307

Browse files
HackerRank Python
0 parents  commit 5e6b307

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

HackerRank_Hash.py

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
if __name__ == "__main__":
2+
n = int(input())
3+
t = tuple(map(int, input().rstrip().split()))
4+
5+
print(hash(t)) #hash() is a builtin function, returns hash of only immutable obj.

0 commit comments

Comments
 (0)