how to do something in python every 5 second code example Example: every second value python import numpy as np values=np.arange(0,10) print(values[::2])