Shape and Reshape

  • + 0 comments

    For Python3 Platform

    import numpy
    
    arr = [*map(int, input().split())]
    arr = numpy.array(arr)
    
    print(numpy.reshape(arr, (3, 3)))