Why doesn't this work?
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
task.second-index