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
|
1867 Discussions
|
Please Login in order to post a comment
try! in python 2 keep tuple outside the if condition if name == 'main': n = int(raw_input() integer_list = map(int, raw_input().split()) t = tuple(integer_list) print(hash(t))
this is a wrong question as python2 gives different result then python 3 and its failing in python3 , had to submit it in python 2
In Python 3, the only reliable way to match the expected hash output is to build the hash function by hand mimicing SEED 0.
Use Python 2 for this challenge.
It was previously solveable using Python 3 as I have multiple correct submissions for Python 3 from a few years ago. But that exact code no longer works when I resubmit it.
Not quite sure what changed, but something definitely did change.
Anyhow, it still works with Python 2 so tackle this challenge with that version of Python.
as someone new in python, the difference in python version and lack of description of the task is frustrating thanks for everyone that mention it here