Outline for January 27, 2012

Reading: §6

  1. Passing values to functions [args.py]
    1. Formal parameters in subject definition
    2. Actual parameters (arguments)
    3. Matching arguments to formal parameters
    4. Local variables
  2. How Python does function calls [peri3.py]
    1. Caller suspends execution at point of call, remembers where it left off
    2. Formal parameters assigned values from actual parameters
    3. Execute function body
    4. Return control to where caller left off

A PDF version is available here.
ECS 10, Basic Concepts of Computing
Winter Quarter 2012