for loop in range in python code example
Example 1: python for loop
for i in range(3):
print(i)
#prints: 0,1,2
Example 2: python loop
for i in range(1, 10);
print(i)
for i in range(3):
print(i)
#prints: 0,1,2
for i in range(1, 10);
print(i)