1 Odpowiedź
+ 5
Install NumPy: https://scipy.org/install.html
Creating an array:
import numpy as np
myArray = np.array([1,2,3])
List pros:
- flexible
- can be heterogeneous
Array pros:
- array of uniform values
- homogeneous
- compact (in size)
- efficient (functionality and speed)
- convenient