Enable Javascript in your browser and then refresh this page, for a much enhanced experience.
One-liner solution in Creative category for Second Index by suic
second_index = lambda t, s, i=__import__("itertools").islice: t.count(s) > 1 and next(i((j for j, c in enumerate(t) if c == s), 1, 3)) or None
Nov. 14, 2017