Shape and Reshape

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