On Sun, Mar 17, 2013 at 2:16 AM, Yves S. Garret
<yoursurrogate...@gmail.com> wrote:
> In the example that I have posted from the book it works just fine.

Yep, I just checked the book's version again and the difference is
clear. Check out the two lines I quoted in my previous post, and look
at the corresponding two lines in the book's version. You should see
the difference. :)

By the way, I like the choice of secret. It lends itself well to a
discussion of recursion - how do you live to 99? Live to 98, then be
careful. Etcetera. You need just one special case: How do you live to
1? Be born, then be careful. And there you have it, a perfect problem
for defining recursion vs iteration, as both can do the job!

ChrisA
-- 
http://mail.python.org/mailman/listinfo/python-list

Reply via email to