breamoreboy at yahoo.co.uk
Wed Aug 12 04:49:37 CEST 2015
On 12/08/2015 03:01, Steven D'Aprano wrote:
> On Tue, Aug 11, 2015 at 04:24:39PM -0700, Ltc Hotspot wrote:
>> Hi Everyone,
>> Why is there an AttributeError, line 12, below : 'tuple' object has no
>> attribute 'sort'?
> Haven't I see this exact same question, complete with solutions, on the
> python-list mailing list?
You have indeed. The answer from Chris Angelico was to use
collections.Counter, which is exactly what I told him here several days
ago. He's also put the same question on the core mentorship list just
for good measure.
My fellow Pythonistas, ask not what our language can do for you, ask
what you can do for our language.
More information about the Tutor