q23.py
· 192 B · Python
Sin formato
# Using NumPy, write a program to create multidimensional array, load it with the numbers and display the content of it.
import numpy as np
arr = np.array([[1, 2, 3], [4, 5, 6]])
print(arr)
1 | # Using NumPy, write a program to create multidimensional array, load it with the numbers and display the content of it. |
2 | |
3 | import numpy as np |
4 | |
5 | arr = np.array([[1, 2, 3], [4, 5, 6]]) |
6 | print(arr) |
7 |