You can try this below code that takes an input from user and reads it as array and not list.
from array import *
a = array('i',(int(i) for i in input('Enter Number:').split()))
print(type(a))
print(a)
IN addition , if you wish to convert it to a list:
b = a.tolist()
print(type(b))
print(b)