Code from selected Think Python exercises