Enable Javascript in your browser and then refresh this page, for a much enhanced experience.
the Found word solution in Clear category for The Hidden Word by MrPod
def checkio(text, word):
text = text.replace(' ', '').lower().split('\n')
for i, line in enumerate(text):
for j,letter in enumerate(line):
if letter == word[0]:
if line[j:j+len(word)]==word:
return [i+1,j+1,i+1,j+len(word)]
elif ''.join(lines[j:j+1] for lines in text[i:i+len(word)])==word:
return [i+1,j+1,i+len(word),j+1]
April 16, 2020
Comments: