turtle.write("Sun", move=False, align="left", font=("Arial", 8, "normal")) code example
Example 1: turtle.write("Sun", move=False, align="left", font=("Arial", 8, "normal"))
>>> turtle.position()
(0.00,0.00)
>>> turtle.forward(25)
>>> turtle.position()
(25.00,0.00)
>>> turtle.forward(-75)
>>> turtle.position()
(-50.00,0.00)
Example 2: turtle.write("Sun", move=False, align="left", font=("Arial", 8, "normal"))
from turtle import *
color('red', 'yellow')
begin_fill()
while True:
forward(200)
left(170)
if abs(pos()) < 1:
break
end_fill()
done()