Max Noel wrote:

On Dec 19, 2004, at 06:16, Jacob S. wrote:

Would this work for you?

a = ['Name = stuff','CGTATAGCTAGCTA','Name = stuff','CGATATGCCGGCTA']
for index,thing in enumerate(a):
    if "Name=" in thing:
        del a[index]


A faster way to do this would be to use something like:

if thing.beginswith("Name"): del a[index]

Like, maybe, if thing.startswith('Name')...

;)

Kent
_______________________________________________
Tutor maillist  -  [EMAIL PROTECTED]
http://mail.python.org/mailman/listinfo/tutor

Reply via email to