Enable Javascript in your browser and then refresh this page, for a much enhanced experience.
First solution in Clear category for The Hidden Word by hbadaoui600
def checkio(text, word):
txt = text.lower().replace(" ", "").split()
for i in range(len(txt)):
while len(txt[i]) < len(max(txt)):
txt[i] += "_"
if word not in text.replace(" ", ""):
ziped = list(zip(*txt))
for i in ziped:
j = "".join(i)
if word in j:
r = j.index(word[0])
c = ziped.index(i)
return [r+1, c+1, r+len(word), c+1]
else:
for i in txt:
if word in i:
r = txt.index(i)
c = i.index(word[0])
return [r+1, c+1, r+1, c+len(word)]
Aug. 31, 2021