in range py code example
Example 1: range in python
#range(start,stop,step)
for x in range(0,20,2):
print(x)
Example 2: range py
range(start, stop, step)
x = range(0,6)
for n in x:
print(n)
>0
>1
>2
>3
>4
>5
#range(start,stop,step)
for x in range(0,20,2):
print(x)
range(start, stop, step)
x = range(0,6)
for n in x:
print(n)
>0
>1
>2
>3
>4
>5