HOW TO MAKE SUN IN TURTLE for python programming

 Turtle star

Turtle can draw intricate shapes using programs that repeat simple moves.

../_images/turtle-star.png
from turtle import *
color('red', 'yellow')
begin_fill()
while True:
    forward(200)
    left(170)
    if abs(pos()) < 1:
        break
end_fill()
done()

Comments

Popular posts from this blog

TURTLE TUTORIAL FOR BEGINERS