Enable Javascript in your browser and then refresh this page, for a much enhanced experience.
First solution in Clear category for Second Index by DeCooper
def second_index(text, symbol):
indices = [x for x, y in enumerate(text) if y == symbol]
return indices[1] if len(indices) > 1 else None
June 8, 2018
Comments: