an enumerate question

Paul Rubin http
Mon Mar 19 21:48:15 EDT 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