On 21/03/2014 21:39, Cameron Simpson wrote:
On 21Mar2014 20:31, Mustafa Musameh <jmm...@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


_______________________________________________
Tutor maillist  -  Tutor@python.org
To unsubscribe or change subscription options:
https://mail.python.org/mailman/listinfo/tutor

Reply via email to