solution python codes for the problems and exercises given in the book "Thinking Recursively" by Eric S. Roberts