Posted in June 2014

Using Python Generators (a recursion example)

Recursion is a powerful programming tool, but also a tricky one. Knowing what’s going on in a recursive function at the various frame levels can be difficult which makes debugging recursive functions challenging. So below is a code snippet that uses recursion to find the largest odd factor of an input integer, and returns the … Continue reading