<johnzenger <at> gmail.com> writes:

> 
> Python lets you iterate through a list using an integer index, too,
> although if you do so we will make fun of you.  You can accomplish it
> with a while loop, as in:
> 
> i = 0
> while i < len(rows):
>    if rows[i] == "This code looks like BASIC without the WEND, doesn't
> it?":


ahh, that would work. Yea its really ugly too. I will probably just use the
shandy.b's suggestion squirreled away in a method. I shouldnt even care, its
just one extra conditional per row



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

Reply via email to