[Tutor] skipping lines

Alan Gauld alan.gauld at blueyonder.co.uk
Fri Oct 10 01:12:01 EDT 2003


> for line in f.xreadlines():
>     words = line.rstrip().split()
 
      if len(words) >= 10:
          S = words[9]
          print >>g,S

Should fix it.

Alan g



More information about the Tutor mailing list