demo_for_range3.py:
for x in range(2, 30, 3): print(x)
➜ begtut>python demo_for_range3.py
2
5
8
11
14
17
20
23
26
29