q25.py
· 177 B · Python
Sin formato
# Using NumPy, initialize an array and display its dimensionality.
import numpy as np
arr = np.array([[[1, 2], [3, 4]], [[5, 6], [6, 7]], [[8, 9], [9, 10]]])
print(arr.shape)
1 | # Using NumPy, initialize an array and display its dimensionality. |
2 | |
3 | import numpy as np |
4 | |
5 | arr = np.array([[[1, 2], [3, 4]], [[5, 6], [6, 7]], [[8, 9], [9, 10]]]) |
6 | print(arr.shape) |
7 |