Practice exercises from Think Python