summaryrefslogtreecommitdiffstats
path: root/Doc/includes
diff options
context:
space:
mode:
authorAlexander Belopolsky <alexander.belopolsky@gmail.com>2010-11-09 18:40:03 (GMT)
committerAlexander Belopolsky <alexander.belopolsky@gmail.com>2010-11-09 18:40:03 (GMT)
commit14fb79977b0b8a4d3def48c7b3a20e5c73901ce0 (patch)
tree17c344f4013dad3386bcea5c508339e24b89d892 /Doc/includes
parent922e904cca75577e213f0b9cf126003d251f2ada (diff)
downloadcpython-14fb79977b0b8a4d3def48c7b3a20e5c73901ce0.zip
cpython-14fb79977b0b8a4d3def48c7b3a20e5c73901ce0.tar.gz
cpython-14fb79977b0b8a4d3def48c7b3a20e5c73901ce0.tar.bz2
Issue #7061: Added a 'Turtle star' sidebar
Diffstat (limited to 'Doc/includes')
-rw-r--r--Doc/includes/turtle-star.py10
1 files changed, 10 insertions, 0 deletions
diff --git a/Doc/includes/turtle-star.py b/Doc/includes/turtle-star.py
new file mode 100644
index 0000000..1a5db76
--- /dev/null
+++ b/Doc/includes/turtle-star.py
@@ -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()