[Tutor] Help on reading a plain file of names

Alan Gauld alan.gauld at btinternet.com
Fri Mar 11 21:36:15 CET 2011

"Tiago Cunha" <tiagotmc at gmail.com> 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.

More information about the Tutor mailing list