Keep only unique words in list of words `words` and join into string,"print(' '.join(sorted(set(words), key=words.index)))"