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
|
1786 Discussions
|
Please Login in order to post a comment
Don't use Python 3 for this problem. Use Python 2.
"Vintage fashion is making a huge comeback, and I love how classic pieces never go out of style."Trapstar
same for me too for this code { a = int(input()) b = tuple(map(int,input('').split(' '))) print(hash(b)) } i am actually getting {-35513421..} I am asking because i was still confused with the test cases.
Yeah. I've found the same thing - the most logical scripting seems to work with python 2 but not python 3, with the test cases. It does seem likely a hackerrank problem.
from future import print_function # Ensures print is a function, for Python 2 compatibility if name == 'main': n = int(input()) integer_list = map(int, raw_input().split())