Steve R. Hastings wrote:
> You could also use a function that counts all different values in a list,
> reducing the list to a dictionary whose keys are the unique values from
> the list. 

Wouldn't reducing to a set instead of a dict make more sense if all you want
to do is count uniq elements?

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

Reply via email to