Enable Javascript in your browser and then refresh this page, for a much enhanced experience.
replace and index solution in Clear category for Second Index by Arkadiusz_Chmura
def second_index(text: str, symbol: str) -> [int, None]:
text = text.replace(symbol, "_", 1)
return text.index(symbol) if symbol in text else None
Nov. 9, 2018