range for in python code example
Example 1: python for loop range
for i in range(0, 3):
print(i)
Example 2: python range
for i in range(0, 4):
print(i)
>0
>1
>2
>3
for i in range(4):
print(i)
>0
>1
>2
>3
for i in range(0, 4, 2):
print(i)
>0
>2