Created
July 7, 2015 14:39
-
-
Save ejmurray/ff1aebe22b3146888e7a to your computer and use it in GitHub Desktop.
This file contains hidden or 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
#!/usr/bin/env python | |
__author__ = 'Ernest' | |
import turtle | |
wn = turtle.Screen() | |
wn.bgcolor("lightgreen") # sets the background colour | |
wn.title("Hello, Ernest!") # set the window title | |
tess = turtle.Turtle() | |
tess.color("Blue") # change the pen colour | |
tess.pensize(3) # change the pen width | |
tess.forward(50) | |
tess.left(120) | |
tess.forward(50) | |
wn.mainloop() |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment