On Thu, 23 Dec 2004 08:35:57 +0100, Fredrik Lundh
<[EMAIL PROTECTED]> 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...
> 
;-)

[snip]

-- 
cheers,
Ishwor Gurung
-- 
http://mail.python.org/mailman/listinfo/python-list

Reply via email to