You are viewing a single comment's thread. Return to all comments →
BY GK import numpy
arr = input().strip().split(' ') array = numpy.array(arr,dtype="int32")
N1 = numpy.zeros(array,dtype="int32") print(N1)
N1 = numpy.ones(array,dtype="int32") print(N1)
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 →
BY GK import numpy
arr = input().strip().split(' ') array = numpy.array(arr,dtype="int32")
N1 = numpy.zeros(array,dtype="int32") print(N1)
N1 = numpy.ones(array,dtype="int32") print(N1)