import numpy as np w = np.linspace(0,3,31) #[start:stop:step] print(w[:]) print(w[:-2]) print(w[::5]) print(w[2:-2:6])