python select every nth element code example
Example 1: get every nth element in list python
start_from = 0
every_nth = 2
a_list[start_from::every_nth]
Example 2: every second value python
import numpy as np
values=np.arange(0,10)
print(values[::2])