Re: [Tutor] Help on reading a plain file of names

2011-03-11 Thread Alan Gauld
"Tiago Cunha" wrote I would suggest to use the NLTK package. Try methods like nltk.endswith() or nltk.startswith() NLTK is probably overkill. The standard string methods startswith() and endswith() are probably adequate for this case. Alan G.

Re: [Tutor] Help on reading a plain file of names

2011-03-11 Thread Tiago Cunha
I would suggest to use the NLTK package. Try methods like nltk.endswith() or nltk.startswith() On Fri, Mar 11, 2011 at 5:36 AM, Alan Gauld wrote: > "apple owner" wrote > > > I am new to python and I am trying to open a plain >> text file of names and to see the number of names >> that start

Re: [Tutor] Help on reading a plain file of names

2011-03-11 Thread Alan Gauld
"apple owner" wrote I am new to python and I am trying to open a plain text file of names and to see the number of names that start with specific letters and display them in a bar graph. OK, Lets break that down so that we can understand what exactly puzzles you: 1) Can you open a text file

[Tutor] Help on reading a plain file of names

2011-03-11 Thread apple owner
Hello there, I am new to python and I am trying to open a plain text file of names and to see the number of names that start with specific letters and display them in a bar graph. I have python version 3.2 and have the graphics.py package as well. If anybody out there knows how I could do this,