Functions calling other functions
A function can call another function inside its body. Big problems get split into small helper functions that each do one job, like boxes in a decomposition.
Understanding Functions calling other functions in VCE Software Development U3O1
What it does: Each box in a decomposition matches one function with one job, here showing the score. main() calls get_name() and show_menu(), so each helper solves one sub-problem. Inside the body of main(), writing greet() with brackets calls the function greet. Without brackets it does not run. Good functions have one job each. Small helpers are easier to read, test and fix. Functions can call other functions. This is how big programs are built from small parts. Defining a function only saves it. It runs only when something calls it. add_bonus() does one job only. do_everything() mixes input, output and maths, so it is harder to reuse.
Common mistakes: A function definition must end with a colon. It should be def sum_squares(a, b):. To call a helper function you need brackets. Without them, name just stores the function itself. It should be name = get_name().
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 72–96) and word search (Modules 72–113).
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
def main(): greet()Fill in the Blanks
Spot the Error
Student with a class code? Join your class →