You are viewing a single comment's thread. Return to all comments →
Took the input as a tuple for the dimensions of the array
nums = tuple(map(int, input().split())) print (numpy.zeros(nums, dtype = numpy.int)) print (numpy.ones(nums, dtype = numpy.int))
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 →
Took the input as a tuple for the dimensions of the array