1 of 12

Seasonal greetings

Python and the turtle Christmas project

1

2 of 12

Starter: What makes a great seasonal greeting card?

2

3 of 12

Open Trinket

Log into Trinket

Click on Home> new trinket

Select python

Name the file Snowflakes

3

4 of 12

Open PyCharm

Click on the search icon

Enter- PyCharm

Create a New turtle project.

Go to FILE

Select New Project… and name it e.g. Ms Quaye’s turtle project

Right click on the folder name

Click File> new Python File

Call it. Seasonal greetings

4

5 of 12

5

Learning Objectives

  • To understand how to program the turtle so that you can create a seasonal greeting card

Success Criteria

  • ALL— be able to draw a circle and use the fill command
  • MOST— be able to include a seasonal design on the circle
  • SOME— be able to add detail to the seasonal greeting card
  • Extension: create a winter wonderland scene.

6 of 12

Subroutines make it easier to reuse code.

Line 15 allows us to RUN the program

Click here for the source code

6

7 of 12

Using the fill command

  • You must select the colour you want to fill the shape.
  • You must tell the program to begin_fill()
  • You must end_fill()

7

Lightblue is the fill colour

0- is the X coordinate

0- is the y coordinate

100 is the radius of the circle

8 of 12

Changing the background colour

To change the background colour of the window use the command.

turtle.bgcolor(“color”).

Stuck

8

9 of 12

Adding text to your seasonal greeting card

turtle.write("Season's Greetings", move=False, align="left", font=("arial",20,"bold"))

9

10 of 12

Learning activities

Create your own seasonal greeting card for the festive period.

Stuck -click here

Extension:

Create a winter wonderland scene of your choice, using all of the skills which we have learnt this term.

10

11 of 12

Understanding the coordinates

print(turtle.pos())

Prints the current location of the turtle

turtle.goto(x, y)

.

11

12 of 12

Plenary- self reflection

Reflect on today’s lesson, what has gone well and what are your areas for improvement.

In your mind answer this question and then share your answer with your neighbour.

12