• Why doesn't this work?

Question related to mission Second Index


def second_index(text: str, symbol: str): """ returns the second index of a symbol in a given text """ # your code here

if symbol in text:
    x = text.index(symbol)

    second_half = text[x+1:]
    if symbol in second_half:
    return second_half.index(symbol)+x

Hi everyone, I'm quiet new to checkio. Python is pretty new to me as well. Thanks for the help