ishwor.gurung at gmail.com
Thu Dec 23 08:44:27 CET 2004
On Thu, 23 Dec 2004 08:35:57 +0100, Fredrik Lundh
<fredrik at pythonware.com> wrote:
> Mike C. Fletcher wrote:
> >>yeah actually i saw what Fedrik had to say above. I created a sliced
> >>copy of the l & did my homework within the for loop
> > You might want to check it again before you hand it in ;) ...
> > >>> def ishwor( source ):
> > --- for item in source:
> >+++ for item in source[:]:
if item == 'd':
> > ... source.remove( item )
> that's not the code he quoted in the mail you replied to, though...
More information about the Python-list