On 11/10/2013 06:18, Jackie Canales wrote:

     for i in range(len(lst)):
         line = lst[i]

Sound advice already from Dave and Peter so I'll just point out for the benefit of newbies that you don't write Python for loops like this, it's.

for line in lst:
    etc

Please see http://docs.python.org/3/tutorial/controlflow.html#index-0

--
Roses are red,
Violets are blue,
Most poems rhyme,
But this one doesn't.

Mark Lawrence

_______________________________________________
Tutor maillist  -  Tutor@python.org
To unsubscribe or change subscription options:
https://mail.python.org/mailman/listinfo/tutor

Reply via email to