You are viewing a single comment's thread. Return to all comments →
This was a hard one -- I was trying to find the correct answer for some time. In the end ChatGPT corrected my final approach: to use raw_input:
raw_input
if __name__ == '__main__': n = int(raw_input().strip()) integer_list = map(int, raw_input().split()) print hash(tuple(integer_list))
Seems like cookies are disabled on this browser, please enable them to open this website
Tuples
You are viewing a single comment's thread. Return to all comments →
This was a hard one -- I was trying to find the correct answer for some time. In the end ChatGPT corrected my final approach: to use
raw_input: