← ACARA Digital Technologies Years 7–8

Scratch scripts and typed Python side by side

One typed line of Python matches one Scratch block. A stack of blocks becomes lines of code that run in order from the top, so spelling and punctuation must be exact.

Understanding Scratch scripts and typed Python side by side in ACARA Digital Technologies Years 7–8

What it does: Each block in the stack becomes one line, and the lines run from top to bottom just like the blocks. Python has no hat block, so the first typed line of the file is where the program begins running. Text must sit inside quote marks in Python. Scratch does not need them, but Python does. Scratch uses dragging blocks. Python uses typing, so you are responsible for every character. Python cannot guess. A spelling mistake causes an error, so check every letter. Every opening bracket needs a closing bracket. The missing ) in the wrong answer would cause a syntax error.

Common mistakes: Python is case sensitive. The Scratch say block becomes print() with a lowercase p. Print is not a known name. It should be print(name). Items inside print() must be separated by a comma, just as a Scratch block needs each value in its own slot. It should be print("Score:", score).

Class: _____________________  ·  Name: _____________________  ·  Date: _________

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.

Learning
Duo
A Scratch script has three blocks stacked one under the other. How many lines of Python match it?
Three lines, one line for each blockOne line that holds all three blocks
Matches
Print("Hi")
↓
Python is case sensitive, so Print with a capital P is not the print function. It must be lowercase print.
Applying
Meanings
Term
print("Hi")
Meaning
One typed line of Python matches one Scratch block. A stack of blocks becomes lines of code that run in order from the top, so spelling and punctuation must be exact.
Practice
print("Hello!")
Testing
Gaps
("Hi")
Check Answer
Spots
3print("Hello")
4Print(name)

Cloodit turns curriculum-aligned coding content into journeys students work through one biome at a time.

The 'Bear' badge — Forest Guardian, one of Cloodit's 106 collectible badges
Students earn collectable badges

Over 100 of them, across seven natural biomes.

Study Buddy
Students build a real study resource

Turns their work into revision material ready for Flash Cards and Exam study.

Diamond Dash — one of Cloodit's live, competitive Sprint games
Students lock in with Sprints

Live, competitive practice for the start of the lesson or a teacher-led lesson finisher.

A Cloodit certificate of achievement, ready to personalise and print
Custom printable certificates

Honour your top performers, or encourage a student who's trying hard — ready to print in seconds.

Quick Questions

1. A Scratch script has three blocks stacked one under the other. How many lines of Python match it?
A. One line that holds all three blocks
B. Three lines, one line for each block ✓
Each block matches one typed line. A stack of three blocks becomes three lines of code.
2. Which Python line matches the Scratch block: say Hello!?
A. print(Hello!)
B. print("Hello!") ✓
Text must sit inside quote marks in Python. Scratch does not need them, but Python does.
3. The Scratch script is: when green flag clicked, say Hi, say Bye. In which order does the Python code run?
A. Hi first, then Bye, from the top line down ✓
B. Bye first, then Hi, from the bottom line up
Blocks run from the top of the stack down. Python lines also run from the top of the file down.
4. What does the 'when green flag clicked' hat block match in a Python file?
A. The first line of the file, where the program starts ✓
B. A special line that must be typed at the very end
Running a Python file starts at the top. That is like clicking the green flag to start the script.
5. How do you build a program in Python compared to Scratch?
A. You type each line with the keyboard ✓
B. You drag each line from a palette
Scratch uses dragging blocks. Python uses typing, so you are responsible for every character.

Match the Pairs

print("Hi") → The typed Python line that matches a Scratch say block with the word Hi
name = input("Name? ") → The typed Python line that matches a Scratch ask block, with the reply stored in name
A stack of three Scratch blocks becomes three lines of Python that run in order from the top → print("Ready") print("Set") print("Go")
The script under the green flag hat block becomes the first line of the file, so the program starts there → print("Start")
Print("Hi") → Python is case sensitive, so Print with a capital P is not the print function. It must be lowercase print.
print("Hi" → The closing bracket is missing. Every opening bracket needs a matching closing bracket to finish the line.

Key Term

print("Hi")
One typed line of Python matches one Scratch block. A stack of blocks becomes lines of code that run in order from the top, so spelling and punctuation must be exact.

Fill in the Blanks

1. print("Hi")
Hint: Type the Python function name that matches the Scratch say block.
2. score = 0 score = score + 1
Hint: Type the variable name that the 'change score by 1' block would update.
3. name = input("Your name? ")
Hint: Type the function that matches the Scratch ask block.
4. # repeat 3 for i in range(3): print("Hi")
Hint: Type the keyword that starts a loop, matching the Scratch repeat block.
5. name = input("Name? ") print("Hi " + name)
Hint: Type the operator that joins two pieces of text, like the Scratch join block.

Spot the Error

Question 1
A # when green flag clicked
B name = input("Name? ")
C print("Hello")
D Print(name)
Line D — Python is case sensitive. The Scratch say block becomes print() with a lowercase p. Print is not a known name. It should be print(name).
Question 2
A # when green flag clicked
B print("Ready")
C score = 0
D print("Score:" score)
Line D — Items inside print() must be separated by a comma, just as a Scratch block needs each value in its own slot. It should be print("Score:", score).
Question 3
A when green flag clicked
B print("Go!")
C print("Set")
Line A — The green flag hat block is only a note about the start of the script. In Python it must be a comment starting with #. Without the # Python tries to run it and gives a SyntaxError.
Question 4
A # say Hello for 2 seconds
B print("Hello)
C # say Bye
D print("Bye")
Line B — Text needs a closing quote, like the whole text in a block's input slot. The line should be print("Hello").
Question 5
A # ask and wait
B answer = input("Name?"
C print("Hi " + answer)
Line B — The bracket opened after input is never closed. Every opening bracket needs a matching closing one. It should be answer = input("Name?").

Student with a class code? Join your class →