• + 1 comment

    In google colab, this code runs excatly as expected but I don't know how do I take the integer inputs given in single line separated by 'space'. Please tell me how do I take such inputs given in single line.

    n = int(input())
    temp_l = []
        
    for _ in range(n):
      num = int(input())
      temp_l.append(num)
    
    temp_tup = tuple(temp_l)  
    print(hash(temp_tup))