Enable Javascript in your browser and then refresh this page, for a much enhanced experience.
Touch of Cohen solution in Creative category for Second Index by veky
import contextlib
def second_index(text: str, symbol: str):
"""Second index of a symbol in a given text."""
with contextlib.suppress(ValueError):
manhattan = text.index(symbol)
berlin = text.index(symbol, manhattan + 1)
return berlin
Nov. 10, 2017
Comments: