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 at: 2017/12/05 22:40; Updated at: 2017/12/06 15:35