Change a string of integers separated by spaces to a list of int,x = [int(i) for i in x.split()]