Run
import numpy as np arr = np.array([1, 2, 4, 9, 16, 25, 36, 49, 64]) elements = arr[2:6] print(elements)
Output