[Tutor] Letter Frequency Count.

Tesla Coil tescoil@rtpro.net
Mon, 10 Jan 2000 07:43:33 -0600


On 8 Jan 2000,  Evgeny Roubinchtein wrote
>> simpsons = list(simpsons)
>
> This is not neccessary to see why, you can try
> this little interaction:
>
> >>> 'a' in "abcd"
> 1
> >>> 'x' in "abcd"
> 0

I'd overlooked this, remaining from my original formulation,
when its absence would return a traceback to line 9:

    if individual in simpsons:
TypeError: string member test needs char left operand