Sort by

recency

|

1771 Discussions

|

  • + 0 comments

    This problem is a great way to practice working with tuples and the hash() function in Python. By converting the list of space-separated integers into a tuple and then using hash(), Ekbet 71 login

  • + 0 comments

    first choose python version 2 this problem is only solveable in python version2

    if name == 'main': n = int(raw_input()) integer_list = map(int, raw_input().split()) t=(tuple(integer_list)) print(hash(t))

  • + 0 comments

    Must choose Language = Python 2 for the hash to pass the test.

  • + 0 comments

    Change the version to python 2 in the editor and run your code the test case will be passed. If you try in python 3 there output will vary.

  • + 1 comment

    I can't understand what is wrong with my code? if name == 'main': n = int(input()) a=input().split() tup=tuple(a) print(hash(tup))