[Tutor] Letter Frequency Count.
Evgeny Roubinchtein
eroubinc@u.washington.edu
Wed, 12 Jan 2000 07:51:19 -0800 (PST)
On Tue, 11 Jan 2000, Tesla Coil wrote:
>This is what I ended up doing altogether. A 0.0667 index
>of coincidence is statistically ideal English text; random
>text is about 0.0375. Would have been nice to print letter
>occurences sorted from highest to lowest frequency, but
>I wasn't sure how to go about that from here.
Look up "Schwarzian Transform" in the Python FAQ (Q4.51 last time I
checked), and sort the list you get by calling stringette.items() ?
--
Evgeny
Honey, I Formatted the Kid!