Helping kids everywhere create what they imagine

Variables and Lists

Variables and Lists

Have you used Variable or List blocks in a Scratch project? They can be a powerful tool when you are creating customized programs. Perhaps you have used a variable to store a game score, but did you know a variable can hold numbers or text (also known as a “string”)? And if you are storing a lot of custom information, using a list may be more efficient than creating multiple variables. Let’s explore what variables and lists are, and see a number of ways they can be used.

Tags
Platform
Scratch
Audience
Students and LearnersEducators and Facilitators
Experience Level
IntermediateAdvanced Concepts
Type
WorkshopGuide or WorksheetCoding CardsVideo
Topic
Computational Concepts: DataCreative Learning: Experimenting and IteratingCreative Learning: Testing and DebuggingArt/AnimationGamesLiteracy/Storytelling
Language
English

Related Resources

Gravity, Advanced Topics: Graphic Effects
Gravity, Advanced Topics: Graphic Effects

Have you seen an animation or played a game where it looked like the sprites were affected by gravity? Perhaps, they fell to the bottom of the stage in a realistic way, slowly gaining speed as they fell. Perhaps, they bounced and those bounces got smaller and smaller over time. Have you wanted to create gravity in one of your projects? Let’s explore how you can!

Learn More
Text Rendering, Text Generator, Advanced Topics: Graphic Effects
Text Rendering, Text Generator, Advanced Topics: Graphic Effects

Do you want to create your own text generator to display changing text on the Scratch project stage without creating sprite costumes for each line of text? Text generators could be used in games, storytelling projects, informational projects, and more! Let’s explore how to create a text generator that you can then customize.

Learn More
Conditional Statements
Conditional Statements

Have you ever wanted to create a Scratch program that is interactive or offers multiple outcomes? Some Scratch programs are static: the outcome is fixed and the same thing happens each time. Some are dynamic: they are capable of action or change each time they are run. In order to create dynamic programs, the programmer can use conditional statement blocks (in the Control blocks category) to give instructions on how the project should respond in different circumstances.

Learn More
My Blocks Custom Blocks
My Blocks Custom Blocks

Have you seen the “My Blocks” category in the Scratch blocks palette? When you click on it, no blocks are present until you create one. Let’s explore how to create a customized block and when and why you might want to use them.

Learn More
Operators
Operators

Use operator blocks to create math games, join text to information stored in variables, complete conditional statements, and more!

Learn More