Exercises from Think Python, by Allen B. Downey.