input numpy array
n, m = map(int, input().split()) # taking number of rows and column
array = numpy.array([input().strip().split() for _ in range(n)], int)
3.67
3
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))
Thank you!
3
0
Are there any code examples left?
New code examples in category Python