I need algorithm for my task

wxjmfauth at gmail.com wxjmfauth at gmail.com
Wed Nov 5 14:29:15 EST 2014


Le mercredi 5 novembre 2014 20:08:03 UTC+1, wxjm... at gmail.com a écrit :
> Le mercredi 5 novembre 2014 12:58:44 UTC+1, lordv... at gmail.com a écrit :
> > 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.
> 
> From your examples: impossible, unsolvable. [*]
> 
> [*] unless using an "external" list of words.

Mea culpa. Sorry, I was wrong. (I "missread" one example).



More information about the Python-list mailing list