how to remove the same words in the paragraph
__peter__ at web.de
Tue Nov 3 23:40:26 CET 2009
> I want to remove all the punctuation and no need words form a string
> datasets for experiment.
> 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.
>>> para = u"""I need to remove the word if it appears in the paragraph
... some give me some clue or some useful function in the python.
>>> print "\n".join(sorted(set(para.translate(dict.fromkeys(map(ord,
More information about the Python-list