Use #numpy to perform calculations on arrays (by @leonardojvega)

>>> import numpy as np >>> x = np.array([1, 2, 3, 4, 5]) >>> print(x * 2) [2, 4, 6, 8, 10] >>> print(x * x) [1, 4, 9, 16, 25]