elems = list(range(10)) print(elems) print(elems[::2]) print(elems[-2::-2]) # [0, 1, 2, 3, 4, 5, 6, 7, 8, 9] # [0, 2, 4, 6, 8] # [8, 6, 4, 2, 0]