Enable Javascript in your browser and then refresh this page, for a much enhanced experience.
First solution in Creative category for Words Order by huynhphillip57
def words_order(text: str, words: list) -> bool:
text_words = text.split()
return all(word in text_words for word in words) and len(set(words)) == len(words) and sorted(words, key = lambda word: text_words.index(word)) == words
May 12, 2020