how to delete multiple elements from a list

Joshua Muskovitz josh at open.com
Wed Nov 15 21:36:31 EST 2000


This will force ListY to be in order from highest to lowest, and so the
del's will not interfere with each other.

ListY.sort()
ListY.reverse()

-- josh




-----= Posted via Newsfeeds.Com, Uncensored Usenet News =-----
http://www.newsfeeds.com - The #1 Newsgroup Service in the World!
-----==  Over 80,000 Newsgroups - 16 Different Servers! =-----



More information about the Python-list mailing list