You are viewing a single comment's thread. Return to all comments →
import numpy as np my_array=list(map(int, input().split())) a=np.reshape(my_array,(3,3)) print(a)
Seems like cookies are disabled on this browser, please enable them to open this website
Shape and Reshape
You are viewing a single comment's thread. Return to all comments →
The easist code
import numpy as np my_array=list(map(int, input().split())) a=np.reshape(my_array,(3,3)) print(a)