Shape and Reshape

  • + 0 comments
    import numpy as np
    arr = np.fromiter(map(int, input().split()), dtype = np.int)
    print(arr.reshape(3,3))