Created
August 30, 2013 21:08
-
-
Save treeherder/6394303 to your computer and use it in GitHub Desktop.
a short example with turtles
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import turtle | |
window = turtle.Screen() # set up the window color and title | |
window.bgcolor("black") | |
window.title("an educational exercise") | |
treeherder = turtle.Turtle() # create a turtle | |
treeherder.color("green") # make him draw a green line | |
treeherder.pensize(5) | |
window.mainloop() |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment