I need algorithm for my task

lordvital21 at gmail.com lordvital21 at gmail.com
Wed Nov 5 06:58:33 EST 2014


I have line 'pythonpythonpyth'. How do I know which word is the foundation line?.
Other examples:
"pythonpythonpyth" is python
"DOLORIUMD" is DOLORIUM
"HELLOLHELLO" is HELLOL
"thewordword" is thewordword

I need to know whether the word in the text is repeated and get it. This will be the key.



More information about the Python-list mailing list