title: Python nested loops - no output
body: <p>I've just started learning python. I am trying to check if the integer x is palindrome then divide it by a number between range (starting from largest y i.e. 999 ) y=999,998,...,100. If x/y=z and z is also a 3 digit integer then finish. Otherwise subtract 1 from x and do the same procedure.</p>
  
  <pre><code>def EuQ4():
      x=998001
      p=999
      while 10000 &lt; x:
          x=x-1
          if str(x)== str(x)[::-1]:
              while p&gt;100:
                  if x%p==0:
                      Pal=x/p
                      if Pal &lt; 999:
                          print (Pal,p)
                          break
                      else:
                          x=x-1
                  else:
                      p=p-1
          else:
              x=x-1
  EuQ4()
  </code></pre>
  
  <p>This is question 4 from Project Euler i.e. Find the largest palindrome made from the product of two 3-digit numbers.</p>