Removing matching items from a list?

woooee at gmail.com woooee at gmail.com
Sat Aug 3 16:27:34 EDT 2013


Use a dictionary to count the number of times each first letter appears, then place any first letters==4 in a list or set and remove any items that have a first letter in the list/set (or keep items that are not in the set which is probably faster if using list comprehension).





More information about the Python-list mailing list