Book Creator

Christmas Coding Fun

by James Abela (@eslweb)

Pages 8 and 9 of 12

Loading...
Christmas Tree
Loading...
Loading...
Using Turtle create a Christmas tree to amaze your family with your coding abilities! Help is available at: Python Challenges Turtle
Loading...
Quicker Alternative:
Want to do a snowman instead?
Loading...
Loading...
Super Hard Challenge: Create Christmas Tree generator that uses seeds to generate the perfect tree for you
Loading...
Make a Greetings Card you can print
Loading...
Outside Front 

(Upside down)
Loading...
Outside back 

(Upside down)
Loading...
There is an easy way to print cards by folding them in 4. Use turtle to create your very own seasons greetings card. Your front and back will be upside down, so you'll need to be clever when you draw those pictures
Loading...
Inside Left
Loading...
Inside Right
Loading...
On a computer, this code will save your drawing as an eps file which you can use in programs. (Opens in Preview on Mac)
Loading...
import turtle

for i in range(4):
  turtle.fd(100)
  turtle.right(90)

ts = turtle.getscreen()

ts.getcanvas().postscript(file="outputfile.eps")

You've reached the end of the book

Read again

Made with Book Creator