Re: Lists of list

2005-08-17 Thread BranoZ
Mohammed Altaj wrote: > Hi All > > I am having problem with delete line if its belong to another one , example I think, you mean to remove all lines that are substrings of another line. l = ['0132442\n', '13\n', '24\n'] l = [e.strip() for e in l] i = 0 while True: try: for j in range(len(l

Re: Lists of list

2005-08-17 Thread Terry Reedy
"Mohammed Altaj" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > I am having problem with delete line if its belong to another one , > example > ['0132442\n', '13\n', '24\n'] > the 2nd and 3rd are already in the first line , how can do this !!! You have a list of strings, not a li

Lists of list

2005-08-17 Thread Mohammed Altaj
Hi All I am having problem with delete line if its belong to another one , example ['0132442\n', '13\n', '24\n'] the 2nd and 3rd are already in the first line , how can do this !!! Thanks -- http://mail.python.org/mailman/listinfo/python-list