Outline for January 27, 2012
Reading:
§6
Passing values to functions [
args.py
]
Formal parameters in subject definition
Actual parameters (arguments)
Matching arguments to formal parameters
Local variables
How Python does function calls [
peri3.py
]
Caller suspends execution at point of call, remembers where it left off
Formal parameters assigned values from actual parameters
Execute function body
Return control to where caller left off
A PDF version is available here.
ECS 10, Basic Concepts of Computing
Winter Quarter 2012