We use cookies to ensure you have the best browsing experience on our website. Please read our cookie policy for more information about how we use cookies.
- Prepare
- Python
- Basic Data Types
- Tuples
- Discussions
Tuples
Tuples
Sort by
recency
|
1576 Discussions
|
Please Login in order to post a comment
n=int(input()) integer_l=map(int,input().split()) t=tuple(integer_l) print(hash(t))
Ensure you've selected language as 'PyPy3' instead of 'Python3' on HackerRank, Then run code:
PyPy and CPython may represent objects differently internally, which can affect how hash values are computed for those objects. Variations in object representation can arise from differences in memory management, optimization strategies, or other implementation details.
HERE IS MY CODE :)
if name == 'main': n = int(input()) integer_list = map(int, input().split()) t = tuple(integer_list) print(hash(t))
HERE IS MY CODE :)
if name == 'main': n = int(input()) integer_list = map(int, input().split()) t = tuple(integer_list) print(hash(t))