title: Python loop stops outputting after 99999 even though it should continue
body: <p>This code is meant to find the largest palindrome from 2 3 digit numbers but stops out puttign well before the final palindrome. Please help.</p>
  <pre class="lang-py prettyprint-override"><code>def palindrome():
  
      pdrome = -1
      for num in range(100, 1000):
          for num2 in range(100, 1000):
              product = num * num2
              sproduct = str(product)
              length = len(sproduct)
              if length % 2 == 0:
                  string1 = sproduct[0:length // 2]
                  string2 = sproduct[(length//2) + 1:]
              else:
                  string1 = sproduct[0:(length//2)]
                  string2 = sproduct[((length//2) + 1):]
              rstring = string2[::-1]
              if string1 == rstring:
                      pdrome = product
      print(pdrome)
  
  
  palindrome()
  </code></pre>