Enable Javascript in your browser and then refresh this page, for a much enhanced experience.
three_line solution in Clear category for Words Order by wii_caiji
def words_order(text, words):
index = [text.split().index(word) if word in text.split() else -1 for word in words]
return True if index == sorted(index) and len(index) == len(set(index)) and -1 not in index else False
July 30, 2020