You are viewing a single comment's thread. Return to all comments →
import numpy arr_shape = numpy.array(input().split(sep=' '), dtype='int') def zeros(shape): return numpy.zeros((shape), dtype='int') def ones(shape): return numpy.ones((shape), dtype='int') print(zeros(arr_shape)) print(ones(arr_shape))
Seems like cookies are disabled on this browser, please enable them to open this website
Zeros and Ones
You are viewing a single comment's thread. Return to all comments →