list IndexError
Fredrik Lundh
fredrik at pythonware.com
Thu Dec 23 02:35:57 EST 2004
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:
> ... if item == 'd':
> ... source.remove( item )
that's not the code he quoted in the mail you replied to, though...
</F>
More information about the Python-list
mailing list