Enable Javascript in your browser and then refresh this page, for a much enhanced experience.
remove first symbol, find index of the next one solution in Clear category for Second Index by Bernardo_Pereira
def second_index(text: str, symbol: str) -> [int, None]:
indchars = list(text)
if indchars.count(symbol) >= 2:
indchars.remove(symbol)
return indchars.index(symbol) + 1
return None
Sept. 22, 2021