Enable Javascript in your browser and then refresh this page, for a much enhanced experience.
First solution in Clear category for Goes Right After by logicalladybuglifestyle
def goes_after(word: str, first: str, second: str) -> bool:
f = word.find(first)
s = word.find(second)
if f == -1 or s == -1:
return False
elif abs(f - s) == 1:
return True
else:
return False
March 29, 2020
Comments: