โšกFREE Live Master Session: Code Your AI Companion for Kids

    Register for Free โ†’
    Free Worksheet ยท Beginner

    Scratch VariablesA Complete Beginner Worksheet

    In this worksheet you will learn what variables are, how to create and use them in Scratch, and complete hands-on exercises to solidify your understanding.

    ๐Ÿ’ก

    What is a Variable?

    Imagine a variable as a labelled storage box. You give the box a name (like Score), and you can put any value inside it โ€” a number, some text, or even the result of a calculation. Your Scratch project can peek inside the box at any time, change what's stored, or display the value on the stage.

    Real-world analogy

    Think of a scoreboard at a cricket match. The scoreboard has a section labelled "Score". Every time a run is made, someone updates the number on the board. The label never changes โ€” but the value inside it does. That is exactly what a variable does in a program!
    ๐Ÿ“ฆ

    Name

    Every variable has a unique name so you can refer to it later (e.g. Score, Lives, PlayerName).

    ๐Ÿ”ข

    Value

    The data stored inside โ€” a number like 0, 100, or -5, or text like 'Alice'.

    ๐Ÿ”„

    Changes over time

    Unlike a fixed number, a variable's value can be updated as many times as needed while the program runs.

    ๐Ÿ‘๏ธ

    Visible on stage

    Scratch can display the variable's current value in a monitor box on the stage so players can see it.

    Key vocabulary

    • Declare โ€” to create (or "make") a variable for the first time.
    • Assign โ€” to put a value into a variable using "Set".
    • Increment โ€” to increase a value (usually by 1) using "Change by".
    • Read โ€” to use the current value stored in a variable.
    1 / 6
    ๐Ÿš€ Ready to go further?

    Master Scratch with Live 1-on-1 Expert Tutors

    Worksheets are a fantastic start! Our Scratch Programming Course for Kids takes you from variables to building complete games with personalised feedback from expert tutors.