SHARE
TWEET

CSH2012 tess.py

calcpage Mar 19th, 2013 41 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  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()
RAW Paste Data
Want to get better at Python?
Learn to code Python in 2017
Top