It's a homework of Learn Python the HARD Way