List

Lesson

List

In this lesson, we are going to learn how to create a List in Scratch. From the previous lesson, we have learned what is variable. So what is List? A list basically is a tool that can help us store multiple variables at once. A list consists of numbers paired with items.

Let’s create a list variable called ‘Friends’ so we can make a list of all your friends.

Let’s add some friends to our list! We can either use the ‘add (thing) to Friends’ Or we can click the plus button at the bottom left and put names in like this: 

Now we want the cat to introduce our friends from the list to everyone, by doing that, we can create a variables called ‘CountFriend’ so that the cat can say our friends name one by one like this: 

Here is an example, give it a try!

@

Not recently active