Enable Javascript in your browser and then refresh this page, for a much enhanced experience.
comprehensive range.... should be onelined somehow solution in Clear category for Second Index by Mesure
def second_index(text: str, symbol: str) -> [int, None]:
l = [i for i in range(len(text)) if text[i] == symbol]
return l[1] if len(l) > 1 else None
June 20, 2021
Comments: