range condition in python code example
Example 1: python check if number is in range
if 10000 <= number <= 30000:
pass
Example 2: range py
range(start, stop, step)
x = range(0,6)
for n in x:
print(n)
>0
>1
>2
>3
>4
>5
if 10000 <= number <= 30000:
pass
range(start, stop, step)
x = range(0,6)
for n in x:
print(n)
>0
>1
>2
>3
>4
>5