Loading
#openttdcoop - Paste
Archives
Trending
Docs
Login
numbers with only even di
Wrap
Raw
Revise
print("Enter the range, values separated by comma:")
[a,b] = [int(z) for z in input().split(',')]
odd = set(['1','3','5','7','9'])
l = []
for n in range(a,b+1):
s = set(str(n))
if odd & s == set([]):
l.append(n)
print(*l, sep=',')
Comments