how to delete multiple elements from a list

Darren New dnew at san.rr.com
Wed Nov 15 01:25:34 CET 2000


etsang at my-deja.com wrote:
> I have a List X with N number of items in it. I have another List Y
> which contains the postion of the elements to be deleted from List X.
> I cannot do a for loop to delete that because for each iteration, List
> X will be changed and there will be sliperage.

Sort Y in descending order.

-- 
Darren New / Senior MTS & Free Radical / Invisible Worlds Inc.
San Diego, CA, USA (PST).  Cryptokeys on demand.



More information about the Python-list mailing list