import turtle while True: turtle.forward(100) turtle.right(190) if abs(turtle.pos())<1: break turtle.done()