range python with a interval of 30 code example
Example 1: how to print numbers between two numbers in pythom
items = []
for i in range(100, 401):
s = str(i)
if (int(s[0])%2==0) and (int(s[1])%2==0) and (int(s[2])%2==0):
items.append(s)
print( ",".join(items))
Example 2: python in range
for value in range (start, step, stop):
pass
# note that the stop will not include