On Tue, Nov 3, 2009 at 11:13 PM, kylin <huili.s...@gmail.com> 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, andreeng...@gmail.com -- http://mail.python.org/mailman/listinfo/python-list