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
|
389 Discussions
|
Please Login in order to post a comment
For Python3 Platform
import numpy as np arr= np.array(list(map(int, input().split()))) shpa = arr.reshape(3,3) print(shpa)
import numpy a=list(map(int,input().split())) print(numpy.reshape(a,(3,3)))