Files for In-Class Exercises
- book.py: The Book class for books in a library with a method to "translate" the text of the book.
Homework Exercises
The best way to learn Python is to use it for a programming project of your own. Some students, however, prefer smaller, better defined exercises they can use to hone their programming abilities. This sections provides problems of that type, along with solutions. Each homework should take no more than a few hours. (The first one will be much shorter.)
- Functions, Tests, and Looping: Basic Python: Functions, conditional tests, "counter"-type looping constructs.
- String Manipulation:
Program to emulate the Unix
cal
tool. - Keyword Input Parameters: Python functions: Use of keyword input parameters.
- Object Decomposition: Objects: Decomposition of a problem into an object framework.
- Bibliography Object: Objects: A simple Python object programming task.