On Mar 20, 9:48 am, Paul Rubin <http://[EMAIL PROTECTED]> wrote: > [EMAIL PROTECTED] 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?
thanks for replying. sorry i make clear again. say for n,l in enumerate(open("file")): print n,l # this prints current line print next line in this current iteration of the loop. hope you can understand now. thanks. -- http://mail.python.org/mailman/listinfo/python-list