Easy way to break up a sentence?
William
wilk-spamout at flibuste.net
Wed Oct 2 09:48:19 EDT 2002
More information about the Python-list mailing list
Wed Oct 2 09:48:19 EDT 2002
- Previous message (by thread): Easy way to break up a sentence?
- Next message (by thread): Easy way to break up a sentence?
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
"Ken" <ken at hotmail.com> writes: > Hi all, I am trying to do a simple word search engine. Is there an easy way > to break up a sentence into individual words so that I can use it to compare > without traversing through every character? > > Eg, something like this: > from: "This is an example" > to: ["This", "is", "an", "example"] "This is an example".split() -- William Dodé - flibuste.net http://wikipython.tuxfamily.org
- Previous message (by thread): Easy way to break up a sentence?
- Next message (by thread): Easy way to break up a sentence?
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
More information about the Python-list mailing list