[Tutor] Use flag to exit?
Richard D. Moores
rdmoores at gmail.com
Thu Jun 24 16:14:54 CEST 2010
On Thu, Jun 24, 2010 at 05:27, Richard D. Moores <rdmoores at gmail.com> wrote:
> On Thu, Jun 24, 2010 at 04:55, Eike Welk <eike.welk at gmx.net> wrote:
>> Looking at my solution now, I think it is too complicated for your relatively
>> simple use-case. I think a better solution would be to put the nested for
>> loops into a function and use return to exit the computation.
>>
>> I wrote a new untested version here:
>> http://tutoree7.pastebin.com/RL3b2bx6
>
> Of course! Now, without looking at your code, I'll try to do it
> myself, and then look.
>
> Thanks very much, Eike.
>
> Dick
Mine is <http://tutoree7.pastebin.com/QtAAtATd>; yours is
<http://tutoree7.pastebin.com/RL3b2bx6>.
Almost identical!
Thanks again, Eike.
Dick
More information about the Tutor
mailing list