We use cookies to ensure you have the best browsing experience on our website. Please read our cookie policy for more information about how we use cookies.
- Prepare
- Python
- Numpy
- Shape and Reshape
- Discussions
Shape and Reshape
Shape and Reshape
Sort by
recency
|
344 Discussions
|
Please Login in order to post a comment
import numpy as np
print(np.reshape(np.array(list(map(int, input().split()))), (3, 3)))
The easist code
import numpy as np my_array=list(map(int, input().split())) a=np.reshape(my_array,(3,3)) print(a)