Zeros and Ones

  • + 1 comment

    For Python3 Platform

    import numpy
    
    shape = tuple(map(int, input().split()))
    
    print(numpy.zeros(shape, dtype=int))
    print(numpy.ones(shape, dtype=int))
    
    • + 1 comment

      It'll work for pypy3 as well.

      • + 0 comments

        Thanks for the info, but I know that. I just mentioned the platform I worked in just as a formality