title: Check all individual digits are even in a range
body: <p>The problem statement:
  Find all such numbers between m and n (both included) such that each digit of the number is an even number.The first line contains value m and n separated by a comma.The numbers obtained should be printed in a comma-separated sequence on a single line.
  Constraints:
  1000&lt;=m&lt;=9000 and
  1000&lt;=n&lt;=9000</p>
  
  <p>My solution:</p>
  
  <pre><code>inp=input()
  arr=inp.split(',')
  m=int(arr[0])
  n=int(arr[1])
  num=[]
  for i in range(m,n+1):
    t=i
    while t&gt;0:
      j=t%10
      if j%2==0:
        t/=10
      else:
        break
    if t==0:
      num.append(i)
  for i in range(len(num)):
    if i!=len(num)-1:
      print(num[i],end=',')
    else:
      print(num[i],end='')
  </code></pre>
  
  <p>For example, if m=2000, and n=2010, then the output should be 2000,2002,2004,2006,2008</p>
  
  <p>But I do not get any output. What is the fault in my program?</p>