np.array input code example
Example 1: numpy array input
n, m = map(int, input().split()) # taking number of rows and column
array = numpy.array([input().strip().split() for _ in range(n)], int)
Example 2: input numpy array
import numpy
my_array = []
a = int(input("Size of array:"))
for i in range(a):
my_array.append(float(input("Element:")))
my_array = numpy.array(my_array)
print(numpy.floor(my_array))