Re: comple list slices



<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



.



Relevant Pages

  • Re: OT: Video - Fun with a metronome
    ... karlie may wrote: ... Had fun with a metronom today. ... I'm not sure what more you want to accomplish with your right hand. ...
    (rec.music.classical.guitar)
  • Re: My Work Is Done
    ... it has been very fun. ... left this little area of Usenet for awhile and told everyone I would ... I think I have accomplished every thing that I wanted to accomplish ...
    (soc.culture.scottish)
  • Re: Moving a 20 shipping container 20 feet by hand
    ... it sounds like great fun and I don't think it will be hard to ... accomplish. ... Others have given you good advice, so I won't bother to repeat it. ...
    (rec.crafts.metalworking)
  • Re: The shelves are done!
    ... That's a lot of work to accomplish. ... The fun starts when you can load up your new shelves. ...
    (rec.crafts.textiles.quilting)
  • Re: Moving a 20 shipping container 20 feet by hand
    ... it sounds like great fun and I don't think it will be hard to ... accomplish. ... Others have given you good advice, so I won't bother to repeat it. ...
    (rec.crafts.metalworking)