Enable Javascript in your browser and then refresh this page, for a much enhanced experience.
using str.find(target, start) solution in Clear category for Second Index by evrur97
def second_index(text: str, symbol: str) -> [int, None]:
"""
returns the second index of a symbol in a given text
"""
first = text.find(symbol)
second = text.find(symbol,first + 1)
if second == -1:
return None
return second
Aug. 1, 2019