cpython/Doc/includes/turtle-star.py

11 lines
155 B
Python
Raw Permalink Normal View History

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