Shape and Reshape

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