Python Functions: Parameters and Return Values

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.

First page of the worksheet “Python Functions: Parameters and Return Values”
Download PDF

For members. Join for $119.88 a year to download every Grade 10 worksheet.

Subject
Technology
Skill
Trace Python functions with parameters, default values, return values and local variables
Time
About 60 minutes
Includes
16 questions, answer key, teaching notes

Standards

  • CSTA 3A-AP-17

    Decompose problems into smaller components through systematic analysis, using constructs such as procedures, modules or objects.

  • CSTA 3A-AP-18

    Create artifacts by using procedures within a program, combinations of data and procedures, or independent but interrelated programs.