Advertisement
calcpage

CSH2012 tess.py

Mar 19th, 2013
236
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.38 KB | None | 0 0
  1. #!/usr/bin/python
  2. import turtle # set the window background colour
  3.  
  4. wn = turtle.Screen() # set the window title
  5. wn.bgcolor("lightgreen")
  6. wn.title("Hello, Tess!")
  7.  
  8. tess = turtle.Turtle(shape='triangle') # tell tess to change her color
  9. tess.color("blue") # tell tess to set her pen width
  10. tess.pensize(3)
  11. tess.forward(50)
  12. tess.left(120)
  13. tess.forward(50)
  14.  
  15. turtle.mainloop()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement