[Tutor] nested loops
Alan Gauld
alan.gauld at btinternet.com
Tue Feb 8 01:59:29 CET 2011
"Steven D'Aprano" <steve at pearwood.info> wrote
> I don't think you want to break out of *any* of the loops. Otherwise
> you will skip testing combinations.
In that case I misread the OP. I thought he specifically wanted
to avoid testing all the options and exit when he reached his target.
> In your example, the first time you set highscore and alignment, you
> break out of all three loops
Yep, thats what I thought was being asked for.
It seems I mistook the intent. reading too quickly I suspect.
Alan G
More information about the Tutor
mailing list