[Tutor] count words

Sean 'Shaleh' Perry shalehperry@attbi.com
Wed Nov 13 23:20:01 2002


On Wednesday 13 November 2002 16:37, reavey wrote:
> Sirs:
> I'd like to count the number of times  a letter occurs  in a string.
> I've been looking at c. It seems that this type of problem is being
> assigned in cs classes on graduate and advanced undergraduate classes i=
n
> the US.
> Yet, I'm unable to find a library function or simply code written as a
> model to help me.
> Any pointer in the direction would be greatly appreciated.
> I would like to expand this model to include Dolce words, to help
> children with reading difficulties.
> TIA
> Re-v
>

I am a little confused.  You want a listing of how many times any given l=
etter=20
occurs in a string, i.e. statistics?  Here's a hint: use a python diction=
ary=20
and a loop.  You are having difficulties because it is like 3 lines of co=
de.

As for your later comment, what is a "Dolce word"?