Enable Javascript in your browser and then refresh this page, for a much enhanced experience.
index(second) - index(first) == 1 solution in Clear category for Goes Right After by Olpag
def goes_after(word, first, second):
if first != second:
if {first, second} <= set(word):
return word.index(second) - word.index(first) == 1
return False
March 12, 2020