Enable Javascript in your browser and then refresh this page, for a much enhanced experience.
First solution in Clear category for Second Index by Nakadashifc2ber
import re
def second_index(text: str, symbol: str) -> [int, None]:
match_list = list(re.finditer(symbol, text))
return match_list[1].start() if len(match_list) >= 2 else None
April 24, 2021