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).


-- 
http://mail.python.org/mailman/listinfo/python-list

Reply via email to