#------------------------------------------------------------------------------ # TurtleLoop5.py #------------------------------------------------------------------------------ import turtle wn = turtle.Screen() bob = turtle.Turtle() bob.color('red', 'yellow') bob.begin_fill() while True: bob.forward(200) bob.left(170) if abs(bob.pos()) < 1: # see if bob is back at the origin (0, 0) break bob.end_fill() wn.mainloop()