Tutoring

Learn

Resources

List in Scratch | Different Types of List Blocks in Scratch

Updated By

Reviewed By

List in Scratch
Image

List in Scratch is a feature used to store multiple values at once. It consists of numbers paired with different items and each item can be retrieved using its respective paired number. It can also be defined as a variable containing/storing multiple variables at once.

There’s also a block category in Scratch known as List blocks. List blocks are a sub-category of Variable blocks that is one of the 9 categories of blocks in Scratch. List Blocks are dark-red colored blocks specifically used to manipulate the already stored values.


This is Chapter 1.3 in the
Advanced Scratch Tutorial


Different List blocks in Scratch

“()” List block

This list block reports the items of the list as a string. Whenever a list is created, the name of the list appears in this block. This block comes under the category of reporter blocks.

“add () to ()” List block

This list block is used to add the given input to the end of the specified list. This block comes under the category of stack blocks. The values can be added directly to the block.

“delete () of ()” List block

This list block is used to delete the given input from the specified list. This block comes under the category of stack blocks. The values can be added directly to the block.

“delete all of ()” List block

This list block is used to delete all the items from the specified list. This block comes under the category of stack blocks. The values can be added directly to the block.

“insert () at () of ()” List block

This list block is used to insert an item containing the given input into the list at a specified position. This block comes under the category of stack blocks. The values can be added directly to the block.

“replace item () of () with ()” List block

This list block is used to replace a specified item with the last given input. This block comes under the category of stack blocks. The values can be added directly to the block.

“item () of ()” List block

This list block is used to report the value of the specified item given as an input of the specified list. This block comes under the category of reporter blocks. The values can be added directly to the block.

“item # () in ()” List block

This list block is used to report the index of the list where the specified item first appears. If the item is not on the list, it reports 0. This block comes under the category of reporter blocks. The values can be added directly to the block.

“length of ()” List block

This list block is used to report the number of items present in a specified list. This block comes under the category of reporter blocks. The values can be added directly to the block.

“() contains () ?” List block

This list block is used to check if any items specified in the given list are equal to the given input. If any one of the items of the list is equal to the given input, it returns “true”, otherwise “false”. This block comes under the category of Boolean blocks. The values can be added directly to the block.

“show list ()” List block

This list block shows the specified list on the stage or the main screen. This block comes under the category of stack blocks. The values can be added directly to the block.

“hide list ()” List block

This list block is used to hide the specified list on the stage or the main screen. This block comes under the category of stack blocks. The values can be added directly to the block.

How to use List in Scratch?

In Scratch, a list block is a sub-category of blocks that comes under Variable blocks available in the block palette. List blocks are used to manipulate the storage of multiple values.

  • Step 1: To use this block, you first need to create a list. To make a list, just click on “Make a List”, as shown below.
make a list
  • Step 2: Make you click on the ‘make a list’ option, you will see a pop-up window, as shown in the image below.
new list name
  • Step 3: Now, name your list block and click ‘ok’ and your list block will show in your Scratch stage.

Frequently asked questions (FAQs)

What is a list in Scratch?
In Scratch, a list is a feature used to store multiple values at once.

How many total list blocks are available in Scratch?
There are a total of 12 variable blocks, out of which, 7 blocks are Stack blocks, 4 blocks are reported blocks, and the rest 1 block is a reporter block.

How different items are retrieved in a list in Scratch?
In Scratch, different items are paired with numbers, so different items can be retrieved using their respective paired numbers.

How do I get all the list blocks?
To use list blocks in Scratch, you first need to create a list. To make a list, just click on the “Make a List” option available on the left side of the screen.

What is the color of list blocks in Scratch?
List blocks are available in dark-red color in Scratch.

We hope you understand what List in Scratch is and how to use them. If you have any doubts, you can ask your doubts in the comment section. 

Get 1-on-1 online Scratch classes
Don't forget to share this post!
tutor Pic
tutor Pic

First Lesson Free

No Credit Card

No Subscription