Sreenivas Reddy Thatiparthy <thatiparthysreeni...@gmail.com> writes:
> How about this one liner, if you prefer them;
> set([(k,yourList.count(k)) for k in yourList])

That has a rather bad efficiency problem if the list is large.
-- 
http://mail.python.org/mailman/listinfo/python-list

Reply via email to