an enumerate question

Paul Rubin http
Tue Mar 20 02:48:15 CET 2007


eight02645999 at yahoo.com writes:
> hi
> say i want to enumerate lines of a file
> eg
> for n,l in enumerate(open("file")):
>      # print  next line ie
> 
> is there a way to print out the next line from current line using the
> above?.

I don't understand what you're trying to do.  You mean you're
trying to print all lines except the first one?



More information about the Python-list mailing list