
Python Loops: Trace the Output
Trace for and while loops in Python to predict program output
A full lesson that teaches first: how a function call passes arguments, runs the body and returns a value, plus default values, print versus return and local variables, with worked traces. Then students trace four programs and write functions.

For members. Join for $119.88 a year to download every Grade 10 worksheet.
Decompose problems into smaller components through systematic analysis, using constructs such as procedures, modules or objects.
Create artifacts by using procedures within a program, combinations of data and procedures, or independent but interrelated programs.