Re: NEED HELP-process words in a text file

2011-06-26 Thread Cousin Stanley
Steven D'Aprano wrote: > If ONE word in uppercase is read in a SLIGHTLY louder voice, > then naturally it doesn't take much imagination TO READ > EVEN QUITE SHORT PASSAGES OF UNINTERRUPTED UPPERCASE WORDS > AS SHOUTING LOUDLY -- And it doesn't take much of a reality check through my own

Re: NEED HELP-process words in a text file

2011-06-24 Thread Ethan Furman
Steven D'Aprano wrote: On Fri, 24 Jun 2011 19:17:29 +, Cousin Stanley wrote: Chris Rebert wrote: Netiquette comment: Please avoid SHOUTING The brilliant beam of light that first thought capitilized words amounted to shouting never programmed cobol, fortran, or pl/1 in the 1960

Re: NEED HELP-process words in a text file

2011-06-24 Thread Steven D'Aprano
On Fri, 24 Jun 2011 19:17:29 +, Cousin Stanley wrote: > Chris Rebert wrote: > >> Netiquette comment: Please avoid SHOUTING > > The brilliant beam of light that first thought capitilized words > amounted to shouting never programmed cobol, fortran, or pl/1 in the > 1960s or 1970s .

Re: NEED HELP-process words in a text file

2011-06-24 Thread Cousin Stanley
John Gordon wrote: > In Cousin Stanley > writes: > >> How or why this behavior was cultivated >> and continues to spread is mind boggling > > The behavior of writing in all caps, > or the behavior of equating such writing with shouting ? The latter equating writing in all c

Re: NEED HELP-process words in a text file

2011-06-24 Thread John Gordon
In Cousin Stanley writes: > How or why this behavior was cultivated > and continues to spread is mind boggling The behavior of writing in all caps, or the behavior of equating such writing with shouting? -- John Gordon A is for Amy, who fell down the stairs gor...@pan

Re: NEED HELP-process words in a text file

2011-06-24 Thread Cousin Stanley
Chris Rebert wrote: > Netiquette comment: Please avoid SHOUTING > The brilliant beam of light that first thought capitilized words amounted to shouting never programmed cobol, fortran, or pl/1 in the 1960s or 1970s :-) How or why this behavior was cultivated and contin

Re: NEED HELP-process words in a text file

2011-06-19 Thread Stefan Behnel
Cathy James, 19.06.2011 01:21: def fileProcess(filename): """Call the program with an argument, it should treat the argument as a filename, splitting it up into words, and computes the length of each word. print a table showing the word count for each of the word lengths that

Re: NEED HELP-process words in a text file

2011-06-18 Thread Dave Angel
On 01/-10/-28163 02:59 PM, Cathy James wrote: Dear Python Experts, First, I'd like to convey my appreciation to you all for your support and contributions. I am a Python newborn and need help with my function. I commented on my program as to what it should do, but nothing is printing. I know I

Re: NEED HELP-process words in a text file

2011-06-18 Thread Chris Rebert
On Sat, Jun 18, 2011 at 4:21 PM, Cathy James wrote: > Dear Python Experts, > > First, I'd like to convey my appreciation to you all for your support > and contributions.  I am a Python newborn and need help with my > function. I commented on my program as to what it should do, but > nothing is pri

Re: NEED HELP-process words in a text file

2011-06-18 Thread Tim Chase
On 06/18/2011 06:21 PM, Cathy James wrote: freq = [] #empty dict to accumulate words and word length While you say you create an empty dict, using "[]" creates an empty *list*, not a dict. Either your comment is wrong or your code is wrong. :) Given your usage, I presume you want a di

Re: NEED HELP-process words in a text file

2011-06-18 Thread Chris Rebert
On Sat, Jun 18, 2011 at 4:21 PM, Cathy James wrote: > Subject: NEED HELP-process words in a text file > > Dear Python Experts, > > First, I'd like to convey my appreciation to you all for your support > and contributions.  I am a Python newborn and need help with my > f

NEED HELP-process words in a text file

2011-06-18 Thread Cathy James
Dear Python Experts, First, I'd like to convey my appreciation to you all for your support and contributions. I am a Python newborn and need help with my function. I commented on my program as to what it should do, but nothing is printing. I know I am off, but not sure where. Please help:( impor