Enable Javascript in your browser and then refresh this page, for a much enhanced experience.
two-argument form of str.index() solution in Clear category for Second Index by rossras
def second_index(text: str, symbol: str) -> [int, None]:
try:
return text.index(symbol, 1+text.index(symbol))
except ValueError:
return None
April 3, 2020