In this example we will show how to loop through a set of code a specified number of times and specify an increment value in Python.
Source Code
for i in range(2, 15, 2):
print(i)
Output:
2
4
6
8
10
12
14
In this example we will show how to loop through a set of code a specified number of times and specify an increment value in Python.
for i in range(2, 15, 2):
print(i)
Output:
2
4
6
8
10
12
14