[Tutor] please help
Mark Lawrence
breamoreboy at yahoo.co.uk
Sat Mar 22 01:04:23 CET 2014
On 21/03/2014 21:39, Cameron Simpson wrote:
> On 21Mar2014 20:31, Mustafa Musameh <jmmy71 at yahoo.com> wrote:
>
> I would collect the statistics using a dictionary to keep count of
> the characters. See the dict.setdefault method; it should be helpful.
>
Delightfully old fashioned but I'd now prefer
http://docs.python.org/3/library/collections.html#collections.Counter :)
--
My fellow Pythonistas, ask not what our language can do for you, ask
what you can do for our language.
Mark Lawrence
---
This email is free from viruses and malware because avast! Antivirus protection is active.
http://www.avast.com
More information about the Tutor
mailing list