Enable Javascript in your browser and then refresh this page, for a much enhanced experience.
First solution in Clear category for Words Order by sm-shakirova
def words_order(text: str, words: list) -> bool:
splitted_text = [word for word in text.split() if word in words]
for el in splitted_text:
if splitted_text.count(el) > 1:
splitted_text.remove(el)
if splitted_text == words:
return True
return False
Jan. 18, 2021