input numpy array

Solutions on MaxInterview for input numpy array by the best coders in the world

showing results for - "input numpy array"
Constanza
07 Jan 2021
1n, m = map(int, input().split()) # taking number of rows and column
2array = numpy.array([input().strip().split() for _ in range(n)], int)
3
Samuel
03 Jul 2020
1import numpy
2
3my_array = []
4a = int(input("Size of array:"))
5for i in range(a):
6    my_array.append(float(input("Element:")))
7my_array = numpy.array(my_array)
8print(numpy.floor(my_array))