Python Functions: Parameters and Return Values

Students review how functions take arguments and return results, then trace four short Python programs covering keyword arguments, print versus return, default values and local scope, and write two functions of their own.

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

For members. Join from $9.99 a month for unlimited downloads.

Subject
Technology
Skill
Trace Python functions with parameters, return values and local variables
Time
About 40 minutes
Includes
14 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.