python range(a,b) code example
Example 1: range py
range(start, stop, step)
x = range(0,6)
for n in x:
print(n)
>0
>1
>2
>3
>4
>5
Example 2: python in range
for value in range (start, step, stop):
pass
# note that the stop will not include
range(start, stop, step)
x = range(0,6)
for n in x:
print(n)
>0
>1
>2
>3
>4
>5
for value in range (start, step, stop):
pass
# note that the stop will not include