title: How to check if result is integer in Python?
body: <p>I have simple task to count number, for example:</p>
  
  <pre><code>a = 7
  b = 9
  result = 0
  
  for _ in (0:100):
       result = a / b
       b += 1
  </code></pre>
  
  <p>How I can stop the for loop when result is an integer? </p>
  
  <p>Checking if method is_integer() wasn't meet my expectations.</p>
  
  <p>I have to use Python 2.6</p>