Enable Javascript in your browser and then refresh this page, for a much enhanced experience.
First solution in Clear category for Second Index by urakin1981
def second_index(text: str, symbol: str) -> [int, None]:
pos = -1
for _ in range(2):
pos = text.find(symbol, pos + 1)
if pos == -1:
return None
return pos
Jan. 1, 2019