mirror of
https://github.com/python/cpython.git
synced 2025-12-04 00:30:19 +00:00
Issue #7061: Added a 'Turtle star' sidebar
This commit is contained in:
parent
922e904cca
commit
14fb79977b
5 changed files with 467 additions and 0 deletions
10
Doc/includes/turtle-star.py
Normal file
10
Doc/includes/turtle-star.py
Normal file
|
|
@ -0,0 +1,10 @@
|
|||
from turtle import *
|
||||
color('red', 'yellow')
|
||||
begin_fill()
|
||||
while True:
|
||||
forward(200)
|
||||
left(170)
|
||||
if abs(pos()) < 1:
|
||||
break
|
||||
end_fill()
|
||||
done()
|
||||
Loading…
Add table
Add a link
Reference in a new issue