[Tutor] How to skip to next line in for loop

Roel Schroeven rschroev_nospam_ml at fastmail.fm
Fri May 2 09:55:56 CEST 2008


Alan Gauld schreef:
>>     if line == "3":
>>           line.next
> 
> this then becomes f.next()  # next is a method not 
> an attribute so needs the () to call it

Shouldn't it even be 'line = f.next()'?


-- 
The saddest aspect of life right now is that science gathers knowledge
faster than society gathers wisdom.
   -- Isaac Asimov

Roel Schroeven



More information about the Tutor mailing list