Running a Python program
A text file of Python instructions. You write it in the editor, and when you press Run, Python does each line in order from first to last and shows the output in the output panel.
Understanding Running a Python program in Years 7–8 Creating Digital Solutions
What it does: The output panel shows 1, then 2, then 3, because the lines run in the order they are written. The print line is typed in the editor. After pressing Run, Go! appears in the output panel. A program is a text file of Python instructions. Python reads it and does what it says. Pressing Run tells Python to start working through your program. Python starts at the top and goes down one line at a time, in order. Line 1 runs first, so A appears first. Then line 2 runs and B appears.
Common mistakes: Python cares about capital letters. The variable was made as name (lowercase), so Name causes an error when you press Run. It should be print("Hi", name). print is spelled wrong. Python runs line 1 first and stops with an error because it does not know prnt. It should be print("Welcome").
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 50–125) and word search (Modules 3–125).
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
programFill in the Blanks
Spot the Error
Student with a class code? Join your class →