how to remove the same words in the paragraph

Andre Engels andreengels at
Tue Nov 3 23:33:59 CET 2009

On Tue, Nov 3, 2009 at 11:13 PM, kylin < at> wrote:
> I need to remove the word if it appears in the paragraph twice. could
> some give me some clue or some useful function in the python.

Well, it depends a bit on what you call 'the same word' (In the
paragraph "Fly fly, fly!" does the word fly occur 0, 1, 2 or 3
times?), but the split() function seems a logical choice to use
whatever the answer to that question.

André Engels, andreengels at

More information about the Python-list mailing list