title: turtle.xcor()/.ycor() if-statement comparison doesn't return true when it should
body: <p>I'm trying to do a comparison of the turtles position with the bounds of my box to make sure it's in bounds.</p>
  
  <p>First I put the turtle at (0,0) and set playing to True with </p>
  
  <pre><code>t.goto(0,0)
  playing = True
  </code></pre>
  
  <p>Then I start the while loop (everything beyond here is in this while loop)</p>
  
  <pre><code>while playing:
  </code></pre>
  
  <p>Then I do a movement</p>
  
  <pre><code>t.fd(10)
  </code></pre>
  
  <p>Then I do this comparison...</p>
  
  <pre><code>if t.xcor() &lt; -200 or t.xcor() &gt; 200 or t.ycor() &lt; -200 or t.ycor() &gt; 200:
    playing = False
  </code></pre>
  
  <p>My problem is that my turtle only ever moves once before exiting the loop - the loop only executes once before the exit condition is met. Is xcor()/ycor() not the best option here? Looking at the python docs on Turtle it seems like it should work. I'm lost here. Help?</p>
  
  <p>Edit: printed t.xcor() before and after t.fd(10), I get 0 first and then -4.2345234e-15 (not sure if that means ^15 or ^-15).</p>