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 |
Naposledy aktivní
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 |