On Thu, Dec 15, 2011 at 11:07 AM, noydb <jenn.du...@gmail.com> wrote: > Ahh, I see (on the sort issue), thanks All! > > Still, any other slicker ways to do this? Just for learning.
MRAB's collections.Counter suggestion is what I would do. Very tidy, and also more efficient I think: O(n) instead of O(n log n). -- http://mail.python.org/mailman/listinfo/python-list