Zeros and Ones

  • [deleted]Challenge Author
    + 0 comments

    Using dtype=numpy.int is not valid anymore in the current stable release of numpy module. Use dtype=int

    import numpy
    
    shape = [*map(int, input().split())]
    
    print(numpy.zeros(shape, dtype=int))
    print(numpy.ones(shape, dtype=int))