Shape and Reshape

  • [deleted]Challenge Author
    + 0 comments

    For Python3

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