cpython/Doc/includes/turtle-star.py

11 lines
155 B
Python

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