n=input() y=n.split() a=([int(x) for x in y]) print(a)
output
python .\\input_into_list.py 1 2 3 [1, 2, 3]
The above
This is indentation error:
n=input() y=n.split() for x in y: a=([int(x)]) print(a,end=' ')