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