If these were the lines what would the output look like? >From your example it doesn't appear that any of the lines would be eliminated.
Larry Bates Reem Mohammed wrote: > Hi > > Suppose we have data file like this one (Consider all lines as strings ) > > 1 2 3 3 4 4 4 4 5 6 > 2 2 2 5 5 5 6 > 3 2 1 1 1 3 3 3 4 6 > > I would like to remove line if its belong to another one, and will be > able to do this if longer line come after a short one. > > Thanks > > _________________________________________________________________ > Express yourself instantly with MSN Messenger! Download today - it's > FREE! http://messenger.msn.click-url.com/go/onm00200471ave/direct/01/ > -- http://mail.python.org/mailman/listinfo/python-list