You are viewing a single comment's thread. Return to all comments →
if your using the python 2 then use this code
if name == 'main': n = int(raw_input()) integer_list = map(int, raw_input().split()) t = tuple(integer_list) print hash(t)
in python 2 to take the input we need to use the raw_input()
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 →
if your using the python 2 then use this code
if name == 'main': n = int(raw_input()) integer_list = map(int, raw_input().split()) t = tuple(integer_list) print hash(t)
in python 2 to take the input we need to use the raw_input()