Code

Python

Helper Modules

You can (and should!) use these modules in your work for this class. Just make sure not to modify them — when I grade your work, I'll use my own copy. To use, for example, helper_module.py, just download it, put it in your working directory, and execute this line (in either the Python REPL or your script):

from helper_module import *

Most modules include extensive comments with usage recommendations, so make sure to open them up and read the source code.

Examples

Here are various snippets of example code to illustrate different ideas.