Zeros and Ones

  • + 14 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))