- while
- if
- break
import turtle
t = turtle.Turtle()
t.speed(10) # 1:slowest, 3:slow, 5:normal, 10:fast, 0:fastest
pozycja = (-100,0)
t.goto(pozycja)
t.pencolor("navy")
t.fillcolor("royalblue")
t.begin_fill()
while True:
t.forward(200)
t.left(165)
if abs(t.distance(pozycja)) < 1:
break
t.end_fill()