On Thu, Aug 25, 2011 at 9:08 PM, Justin Wendl <[email protected]>wrote:
> Hi John,
>
> Thanks for the quick response. Unfortunately it is returning the same
> result..
>
>
This is caused by the
else:
break
part of the the code. Break breaks out of the loop, thus you skip all
following elements if you go through the 'else' part once. What you probably
meant was:
else:
continue
This skips only the remainder of the current traversion of the loop, and
goes on with the next one.
In this case it's even simpler: There is no remainder of the current run of
the loop to skip, so you should be allright if you remove the else part
altogether.
--
André Engels, [email protected]
_______________________________________________
Tutor maillist - [email protected]
To unsubscribe or change subscription options:
http://mail.python.org/mailman/listinfo/tutor