Re: [Tutor] Re: Printing two elements in a list

2004-12-20 Thread Jacob S.
That's interesting, I hadn't thought of that! Jacob > 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] > > > > I know, that it mig

[Tutor] Re: Printing two elements in a list

2004-12-19 Thread C Smith
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] I know, that it might be slow, but I thought that maybe it would hold its own because it doesn't have to imp