Functions – Parameters
Parameters are placeholders in a function definition that accept values when the function is called
What it does: 'Alice' is passed as the argument for the parameter 'name'. Multiple parameters are separated by commas in the def line. Parameters are the names in the def line — they receive the argument values. Arguments are the values you pass when calling the function. 3 goes to a, 5 goes to b — a + b = 8. def func(a, b, c): is perfectly valid — separate with commas. greet() expects one argument (name) but none was given — TypeError. Two calls to show() — each call prints once, so two lines print.
Common mistakes: Missing colon after the parameter list. Parameters don't use quotes: name is a variable, not a string.
Free printable worksheet with full answer key — or add this module to a journey and assign it to your class.
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
ParameterFill in the Blanks
Spot the Error
Create a free class, add this module to a journey, and track who's stuck.
Create a free teacher account →No credit card. No setup fee. Make a class and invite students in under three minutes.
Practice this topic interactively, track progress, and unlock badges.
Start Learning Free →