Class 23 — Monday October 22
Module implementation and usage
The task before us — Turn the abstract to concrete – Functions are at hand
Look both ways
Agenda
- Function-based chrestomathics
Examples
- Module uva.py
- Let's implement a worthwhile module with four functions
- A function with no parameters that does not perform an explicit return;
- A function with parameter(s) that does not perform an explicit return;
- A function with no parameters that returns something of value;
- A function with parameter(s) that returns something of value;
- Program rotunda.py
- Let's implement along the way in a simple tester of module
uva.py
To Do
- Review artifacts
- Review prior class
- Complete homework
© 2019 Jim Cohoon | Resources from previous semesters are available. |