Hopelessly Lost And Desperate Newbie
Andrew Koenig
ark at acm.org
Thu Dec 4 10:05:16 EST 2003
> Hello, there. I'm desperately in need of assistance, because I can't
figure
> out how to get Python to work. Could someone help me with a program that
can
> examine textual input in pairs of letters, keep track of how often the
letters
> occur, and then write a random letter generator based on that input, do
you?
> I mean,....well, let's say that this thing (in its most primitive state)
would
> just count the occurances of a single letter. From the input, "a" occurs
12
> times, "z" occurs 3 times, "q" occurs once, "e" occurs fifteen times, etc.
I suggest you start by writing a program that does just this part. Once
you've gotten that far, post your program here and ask for suggestions on
how to improve it.
More information about the Python-list
mailing list