Search Header Logo
turtle_iteration_BN23

turtle_iteration_BN23

Assessment

Presentation

Computers

9th - 12th Grade

Practice Problem

Easy

Created by

Brian New

Used 12+ times

FREE Resource

12 Slides • 10 Questions

1

turtle coding

media

python turtle with Edublocks

2

goals

O remind ourselves how to draw with a turtle

O use iteration (looping) to destroy reality

​O understand how iteration (looping) works

media

3

Multiple Choice

Turtle coding on Edublocks uses what programming language?

1

javascript

2

python

3

C++

4

your mum

4

Multiple Choice

Iteration means what?

1

lines of code in the right order

2

when code asks a question

3

repeating some lines of code in a loop

4

lines of code in the wrong order

5

goals

O remind ourselves how to draw with a turtle

O use iteration (looping) to destroy reality

​O understand how iteration (looping) works

media

6

media

setting up your turtle baby

media
  1. Click the link above to begin

  2. Find out what to add to the code to make your turtle look like a turtle

  3. Challenge: can you use colours for background and your turtle? Can you draw a square? A Hexagon?

media

7

media
media

8

media
media

​questions -- do we completely understand?

9

goals

O remind ourselves how to draw with a turtle

O use iteration (looping) to destroy reality

​O understand how iteration (looping) works

media

10

Multiple Choice

What is used to turn the turtle?

1

.speed()

2

.turn()

3

.forward()

4

.left()

11

Open Ended

turtle.backward(20)

turtle.left(90)

turtle.forward(80)

Describe what this turtle code would do.

Where would the turtle move?

And what would it look like in the end?

12

using loops to iterate code over and over...

  1. Click the link above to begin

  2. Fix the bug -- the code should draw a square. What number do you need to change?

  3. Challenge: adapt the code so that it draws a different shape or pattern.

media

13

​questions -- do we completely understand?

media
media

14

Open Ended

Question image

Describe why this code, which uses iteration (a loop), would not draw a square.

Extra challenge:

can you predict what pattern or shape this code would make?

15

goals

O remind ourselves how to draw with a turtle

O use iteration (looping) to destroy reality

​O understand how iteration (looping) works

media

16

Multiple Choice

What is another word for looping?

1

choosing

2

imitating

3

turtling

4

iterating

17

Multiple Choice

How many times would we need to iterate (loop) to draw a hexagon?

1

2

2

4

3

6

4

8

18

Multiple Choice

What does turtle.width( ) do?

1

sets the thickness of lines

2

makes the turtle move from side to side

3

changes the background colour

19

Multiple Choice

How can you make the turtle turn clockwise?

1

turtle.left()

2

turtle.right()

3

turtle.backward()

20

Multiple Choice

What does the number mean in a for loop?

e.g.

for i in range( 4 )

1

turns the turtle in a range of 4 degrees

2

sets the number of iterations the code will repeat

3

makes the turtle move 4 times as fast

21

goals

O remind ourselves how to draw with a turtle

O use iteration (looping) to destroy reality

​O understand how iteration (looping) works

media

22

media

time to destroy reality

  1. copy the code to make this pattern

  2. can you change it to create a different pattern?

  3. Can you destroy reality?

turtle coding

media

python turtle with Edublocks

Show answer

Auto Play

Slide 1 / 22

SLIDE