title: Wrong result in while condition
body: <p>I used Python and write first while condition: </p>
  
  <pre><code>target = 9
  guess = 0
  limit = 3
  while guess&lt;=limit:
      guess = int(input('guess: '))
      guess +=1
      if guess == target:
          print("you win")
          break
  else:
      print("you fail")
  </code></pre>
  
  <p>When I run this, I succeed to get result of failure:</p>
  
  <pre><code>guess: 1
  guess: 2
  guess: 3
  you fail
  </code></pre>
  
  <p>But when I enter 9 I get a wrong answer:</p>
  
  <pre><code>guess: 1
  guess: 9
  you fail
  </code></pre>
  
  <p>Could someone tell me why I do not get <code>"you win"</code> as result here? I failed to find an error in format. </p>
  
  <p>And why I am able to enter only two guesses when I use <code>guess &lt; limit</code>?</p>