• help

Question related to mission Second Index

 

Hi guys,

Why it doesn't work:

if text.count(symbol) >= 2:
    c  = 0
    for i in text:
        if i == symbol:
            c += 1
            if c == 2:
                return text.index(i)
else:
    return None

Thanks