Lesson 10: Treasure those lists!
Year 7 - Programming essentials in Scratch: part II
Which loop would you use and why?
Starter activity
A programmer wants to draw a single pentagon in Scratch.
A
B
C
Which loop would you use and why?
Starter activity
A programmer wants to draw a single pentagon in Scratch.
B
Lesson 10: Treasure those lists!
Objectives
In this lesson, you will:
4
Introducing lists
Activity 1
Variables can only hold one piece of data at a time.
This can be limiting when you want to hold multiple pieces of data in one convenient place.
You might want to create a shopping list program for a home assistant. You couldn’t do this with a variable because it would just overwrite the previous shopping item each time.
Introducing lists
Activity 1
Using lists as part of a game
Activity 2
Familiarise yourself with this game by experimenting with it for five minutes.
Work out how to get to the next level either through game play or through reading the code.
Investigating the list
Activity 2
Use the ‘Investigate the list’ worksheet to investigate how a list has been used as part of the game.
Explorer tasks
The worksheet also contains some modify challenges for you to try.
Discuss your answers
Activity 2
With a partner, discuss the answers that you gave to this investigation.
Match the description to the correct code block
Plenary
Deletes all items in a list
Replaces an item at a specific location with another item
Deletes a single item in a specific location
Checks if the list contains a specific word
Adds an item to the end of the list
Match the description to the correct code block
Plenary
Deletes all items in a list
Match the description to the correct code block
Plenary
Adds an item to the end of the list
Match the description to the correct code block
Plenary
Checks if the list contains a specific word
Match the description to the correct code block
Plenary
Deletes a single item in a specific location
Match the description to the correct code block
Plenary
Replaces an item at a specific location with another item
Homework: Parson’s Puzzle on lists
Homework
Complete the homework questions on the sheet provided.
16
Due: Next lesson
Next lesson
Summary
In this lesson, you…
Next lesson, you will…
17