Pseudocode assignment, INPUT and OUTPUT in Python
Python for INPUT Age: = replaces the arrow, input() reads text, and int() turns that text into a whole number. OUTPUT Age becomes print(Age); use float() for decimals.
Understanding Pseudocode assignment, INPUT and OUTPUT in Python in IGCSE Computer Science Paper 2
What it does: In Python, = is the assignment operator, so it replaces the pseudocode arrow ←. input() returns text, so float() converts it into a decimal number. INPUT Price would only store text without it. INPUT Name becomes Name = input(). The value typed in is stored in the variable on the left of the =. OUTPUT becomes print() in Python. The value to show goes inside the brackets. Both Pascal case and Python style names are valid in Python. Just use the same spelling every time in your program.
Common mistakes: input is a function, so it needs brackets to be called. INPUT Age becomes Age = int(input()), with input() ending in (). The arrow ← is pseudocode only. Python uses = for assignment, so the line should be Total = Count * 2.
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 188–213) and word search (Modules 188–231).
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
Age = int(input())Fill in the Blanks
Spot the Error
Student with a class code? Join your class →