Enable Javascript in your browser and then refresh this page, for a much enhanced experience.
hard way =) solution in Clear category for The Hidden Word by kdim
def checkio(t, w):
check = lambda x: [[i + 1, j.index(w) + 1, i + 1, j.index(w) + len(w)] for i, j in enumerate(x) if w in j]
t = t.lower().replace(' ', '').split('\n')
t = [i.ljust(len(max(t)), '-') for i in t]
c = sum(check(t), [])
if c: return c
c = sum(check([''.join(i) for i in zip(*t)]), [])
return c[:2][::-1] + c[2:4][::-1]
Jan. 28, 2021
Comments: