Sort by

recency

|

1807 Discussions

|

  • + 0 comments
    if __name__ == '__main__':
        n = int(input())
        integer_list = map(int, input().split())
        print(hash(tuple(integer_list)))
    
  • + 1 comment

    For Pypy3 Platform

    For some reason, this code is working only on Pypy3 platform. If anyone knows the reason for it, please explain!!

    n = int(input())
    t = tuple(map(int, input().split()))
    
    print(hash(t))
    
  • + 0 comments

    I have the folloiwng for python2, but was not able to find a solution for python3. I even tryied to define hash() again. Anyways, here is my solution if you have one for python3 please share! :)

    if __name__ == '__main__':
        n = int(raw_input())
        integer_list = tuple(map(int, raw_input().split()))
        print(hash(integer_list))
    
  • + 0 comments

    ("hello world"

  • + 0 comments

    I tried this:

    if name == 'main': n = input()

    values = map(int,input().split())
    
    t_value = tuple(values)
    
    hashed = hash(t_value)
    
    print(hashed)