skip last line in loops

eight02645999 at yahoo.com eight02645999 at yahoo.com
Fri Dec 15 01:47:23 EST 2006


hi,
how can i skip printing the last line using loops (for /while)

eg

for line in open("file):
     print line.

I want to skip printing last line of the file.thanks




More information about the Python-list mailing list