Topic 2

Turtle Movement 🏃‍♀️‍➡️

Which function creates a turtle 🐢?

turtle.New()    turtle.Turtle()    turtle.Start()    turtle.Init()

 

What name did we give to our turtle variable?

toby    tarik    tess    tina

 

Select the right shape() function ⬛🔴🔺⬆️🐢:

shape(turtle)    shape("dvd")    shape("turtle")    shape(heart)

 

Challenge: What function moves 🏃‍♀️‍➡️ the turtle to the coordinate x=100 and y=100? 

Do Now

First look

tina has a function called forward() to move by pixels

 

tina has a function called left() to turn by degrees

 

Let's finish the square!

Opposite functions!

opposite of forward()?

 

opposite of left()?

 

they work the same way!

 

let's create the opposite_square() function!

triangle()

Complete the code to make the below triangle!

def triangle():
  tina = turtle.Turtle()
  tina.shape("turtle")
  tina.forward( )
  tina.left( )

120

60

pentagon()

Complete the code to make the below pentagon!

def pentagon():
  tina = 
  tina.shape("turtle")

72

108

Tic Tac Toe Field

penup(): function to stop drawing

pendown() function to start drawing

Complete the field!

(-150,50)

(-150,-50)

(-50,-150)

(50,-150)

Plenary

Solve the maze...

# Use these
hero.forward(50)
hero.backward(50)
hero.left(90)
hero.right(90)

Topic 2 - Turtle Movement

By Jakob Stanley Warth

Topic 2 - Turtle Movement

  • 24