python range with : operator 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: range in python
for i in range (start, step, stop):
dosomething()
range(start, stop, step)
x = range(0,6)
for n in x:
print(n)
>0
>1
>2
>3
>4
>5
for i in range (start, step, stop):
dosomething()