Topic 1
Creating Turtles 🐢

Do Now
1. How many lines of code? 4 6 8 5
2. What is around the word turtle on line 5? ( ; " *
3. Which on is a colon? : ; . <
4. On which lines was the TAB key used?
5. How can you change the shape from turtle to circle in line 5?
import turtle
def task1():
tina = turtle.Turtle()
tina.shape("turtle")
task1()

💻
execute

I do 👀👂
Don't worry about lines 1-3
Functions are a group of instructions
At line 5 we define a function called task1()
Every indented 🫸 instruction is part of task1()
Try running the program... What happens?
We do 🙌
1. Call 📱 task1() on line 9

2. Change the shape of tina to a square or to a circle.

3. What happens if you try calling task2() instead?

I do👀👂
We create a 🐢 variable called tina on line 6.
tina has a function called shape()
tina has a function called goto() which moves her to given coordinates. Let's try it!
We do 🙌
1. Make tina draw this:
2. And now this:



Common Mistakes!





A
B
C
D
E
def task2():
tina =
tina.shape( )
tina.goto( )
task2()
Complete task2() to match the image 📷
Challenge: move to 3 other coordinates

task2()
def task3():
tina =
task3()
Complete task3() to match the image 📷
Challenge: Discover a new shape
(research "python turtle shapes" online)

task3()
def plenary():
tina = turtle.
tina.shape( )
tina.goto( )
tina.goto( )
tina.goto( )

Choose the right options for line 1 and 2
New() Turtle() Create() Start()
turtle circle "turtle" "circle"
🧑💻👩💻Complete the code to match the image
Topic 1 - Creating Turtles v2
By Jakob Stanley Warth
Topic 1 - Creating Turtles v2
- 11