1print(range(4))
2>>> [0,1,2,3]
3print(range(1,4))
4>>> [1,2,3]
5print(range(2,10,2))
6>>> [2,4,6,8]
7
1list_1 = [9, 5, 7, 2, 5, 3, 8, 14, 6, 11]
2
3for i in range(0, len(list_1), 2) :
4 print(list_1[i])
5
62 is the steps
7output:
89
97
105
118
126