Homework and exercise code for a Python course.