Creating a List in Scratch
Scratch Programming
The Scratch programming language is free, fun and easy to learn.
Most programming languages are text-based so a learner has to gain experience writing the code, but Scratch programming is easier as it uses blocks.
The learner selects blocks, puts them together and runs the program in a simple way making it the most fun and easiest way to learn programming.
Scratch Program: Lists
This additional lesson introduces lists, often called arrays in programming languages.
We use a loop to iterate through the list – meaning go through each value in a list.
The task requires some programming logic to be completed, either using two loops with an inner loop, or even better an if statement.
download the instructions
Task #6 Lists Walkthrough
- A data structure used commonly in programming is called a list in Scratch and python and an array in other programming languages. It is the same as a list in real life.
- A collection of data items such as numbers, dates, times, words or any value are listed from the first item to the last. The list can be any length but we can access each item by it’s place, called the index (e.g. 1 for first item, 2 for second item etc.).
- In other programming languages the index starts at 0. Try some research to find out why.