Enable Javascript in your browser and then refresh this page, for a much enhanced experience.
Third solution in Clear category for Goes Right After by kazuki.h
from itertools import pairwise, takewhile
def goes_after(word, first, second):
try: return word.index(first)+1 == word.index(second)
except ValueError: return False
Aug. 11, 2022
Comments: