how to delete multiple elements from a list
etsang at my-deja.com
etsang at my-deja.com
Tue Nov 14 18:59:42 EST 2000
Hi,
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.
How can I delete all the items as specified by the positions in Y at
one time? Also both List X and List Y are known in run time only.
Thanks
Sent via Deja.com http://www.deja.com/
Before you buy.
More information about the Python-list
mailing list