I have to write a function that does this :
It checks if a word come up twice in a row .
For example :
myString = " Ariel lives in in the city city Ariel "
so now my function should print the words : in city .
because they are words that appear twice , notice that Ariel should not be printed because the word Ariel doesn't appear 1 after another.
pls help me solve this .
Thanks ahead ,