24
theALFEST
Last seen 5 months ago
Member for 5 years, 5 months, 5 days
Difficulty Normal
Corrected version:
def goes_after(word: str, first: str, second: str) -> bool:
return -1 < word.find(second) - 1 == word.find(first)
More
it`s slower than 'text.split()[0]' and 'text[:text.index(' ')]'
More
Instead of
a, b = min(a,b), max(a,b)
You can use
a, b = sorted((a,b))
More