Light Mode
Dark Mode
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

Created: Dec. 5, 2017, 10:40 p.m.
Updated: Dec. 6, 2017, 3:35 p.m.
-1
8
User avatar
ismarguitar