[Coco] Turtle Graphics

Melanie and John Mark Mobley johnmarkmelanie at gmail.com
Fri Nov 8 13:36:38 EST 2013


This is my Python Turtle Graphics Program.
#!/usr/bin/python
# This is an example of Python Turtle Graphics
# This program makes an octagon/stop sign
# Works under Cygwin if you run XWinServer first.
# Works under Linux if run inside X Window System.
import turtle
import time
turtle.pendown()
for a in xrange(1,9):
  turtle.left(45)
  turtle.forward(50)
turtle.penup()
time.sleep(7)

John Mark Mobley




More information about the Coco mailing list