Enable Javascript in your browser and then refresh this page, for a much enhanced experience.
Second Index solution in Clear category for Second Index by W.Zalicki
def second_index(text: str, symbol: str):
first = text.find(symbol)
second = -1
if first != -1:
second = text.find(symbol, first+1)
else:
return None
if second == -1:
return None
else:
return second
Jan. 14, 2018