Lesson #10

Variables - Scoring in Scratch


A variable is a way of storing information in a computer program. Think of a variable like a container and the name of the variable as the label on the container which shows us what is inside. Variables are used in coding and programming to help coders understand, remember, and use the information in the program. 

Variables in Scratch can store two types of values: numbers and text. In the video below we explore how to add variables, how to rename variables, how to hide variables and how we can change the value of a variable.

Like many games, keeping score is very important. Variables allow you to control a scoring system in scratch and keep track of this in plain sight. It allows you to know how successful you have been and we all know how exciting it is when you get a new high score! Happy Coding.

Variables Part 1

To fully understand variables we suggest completing the lesson below before moving onto the coding video itself. The PowerPoint and associated lesson plan will allow students to understand the key concepts of variables before adding this to their game

Variables Unplugged PPT.pptx

Variables Powerpoint

Variables Unplugged Activity.pdf

Variables Lesson Plan (35 minutes)

Key Learning in main task video

Plenary

Questions

Extending the Learning

Using Variables In Google Forms

Google Forms.webm

Suggested Links to IDL Planner