Homework of BOOK ThinkPython