ndarray, basic slicing

In [1]: import numpy as np

In [2]: a = np.array( range(24))

In [3]: a[0:6:2]
Out[3]: array([0, 2, 4])

A slice is selected by i:j:k with i as the first and j as the last index, k being the step width.