<human>:  How can I remove duplicate words in a string with Python?
<bot>: Here is some code to keep only unique words in list of words `words` and join into string

print(' '.join(sorted(set(words), key=words.index)))

#Warning: this code generation is experimental. Please inspect the code for any bugs before executing.