Outline for January 20, 2012
Reading:
§4
Assignment [
swap.py
]
Simple assignment:
variable = expression
Simultaneous assignment:
variableA, variableB = expressionA, expressionB
Functions [
hello.py
]
What functions are
Defining them
Returning values from functions [
calc.py
]
Use of
return
statement
Example: doing error checking in it to be simple
Passing values back through parameters (cannot do it directly; more later)
A PDF version is available here.
ECS 10, Basic Concepts of Computing
Winter Quarter 2012