Shape and Reshape

  • + 0 comments
    import numpy
    
    dimentions = list(map(int,input().split()))
    
    arr = numpy.array(dimentions)
    arr.shape = (3,3)
    
    print(arr)