Scratch variable blocks as Python assignment
Python for the Scratch block 'change score by 1'. Python works out the right side first, then stores the answer back in score. Use score = 0 to set it.
Understanding Scratch variable blocks as Python assignment in ACARA Digital Technologies Years 7–8
What it does: Changing by a negative number means subtracting, so Python works out score - 1 and stores it back in score. If score is 5, the right side score + 1 becomes 6, and then 6 is stored back in score. The = sign stores a value in a variable. score = 0 sets score to 0, just like the Scratch set block. To go down by 1, take 1 away from the old value. score = -1 would set the score to -1 instead of changing it. Set the starting value first. If you reset to 0 after adding, the +1 is wiped out and score ends at 0.
Common mistakes: The variable being changed must be on the left of the = sign. Python works out the right side first and stores it in the left. It should be score = score + 1. == compares two values. It does not set the variable, so score never exists. To set score to 0 (like the Scratch 'set score to 0' block), use a single =: score = 0.
Free printable worksheet with full answer key — or add this module to a class and your students practise it interactively.
This module's key terms are also in a printable crossword (Modules 482–519) and word search (Modules 420–519).
Take this worksheet further — free with Cloodit
Each concept is reinforced from every angle — learned, then applied, then tested.
Cloodit turns curriculum-aligned coding content into journeys students work through one biome at a time.
Over 100 of them, across seven natural biomes.
Turns their work into revision material ready for Flash Cards and Exam study.
Live, competitive practice for the start of the lesson or a teacher-led lesson finisher.
Honour your top performers, or encourage a student who's trying hard — ready to print in seconds.
Quick Questions
Match the Pairs
Key Term
score = score + 1Fill in the Blanks
Spot the Error
Student with a class code? Join your class →