I am new to python and I am using python3 . I am learning numpy but cant figure out how to take user input from a single line. Like inputs--> 1 2 3 4
I have tried using this command which I generally used for normal array method other than numpy
from numpy import *
arr=array([])
p=1
arr=list(map(int,append(arr,input().split())))
print(arr)
But the problem with this is that this is turning my array into a list and when I am using the command
print(arr.dtype)
It gives me this error--> 'list' object has no attribute 'dtype'
So, my question is how to take input from a single line while using the numpy array module?