[Tutor] recursion surprise

Dave Angel davea at davea.name
Sun Jun 9 00:47:35 CEST 2013


On 06/08/2013 06:38 PM, Jim Mooney wrote:
> On 8 June 2013 15:05, Thomas Murphy <thomasmurphymusic at gmail.com> wrote:
>> Hi Jim,
>>
>> First off, I'm a beginner, so I offer this with humility, but are you
>> sure you wanted a > then sign?
>
> Thanks. I'm a beginner myself, but yes, I meant to do that.

Your description mentions recursion, while Thomas's code has no such 
thing.  So if that's what you intended, you were way off target.

> I get
> bored with my Lutz book, which is very long and detailed, so now and
> then I look ahead and try out things I don't quite fathom, if they
> interest me ;')  But that is what I thought I meant to do, not a loop.

And yet Thomas version uses a loop, while yours uses recursion, not a loop.



-- 
DaveA


More information about the Tutor mailing list