Exercises

Files for In-Class Exercises

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.)

  1. Functions, Tests, and Looping: Basic Python: Functions, conditional tests, "counter"-type looping constructs.
  2. String Manipulation: Program to emulate the Unix cal tool.
  3. Keyword Input Parameters: Python functions: Use of keyword input parameters.
  4. Object Decomposition: Objects: Decomposition of a problem into an object framework.
  5. Bibliography Object: Objects: A simple Python object programming task.
Creative Commons License Updated: Monday, 27-Dec-2010 11:55:40 PST. Valid CSS, HTML. Author: Johnny Lin <email address>. Disclaimer. This work is licensed under a Creative Commons Attribution-NonCommercial-ShareAlike License.