Change e letters to i in words: Difference between revisions

Content added Content deleted
m (→‎{{header|Python}}: Simplified an expression.)
Line 1,130: Line 1,130:


return [
return [
(w, twin) for w in [
(w, twin) for w in allWords
w for w in allWords
if 5 < len(w) and 'e' in w and (
if 5 < len(w) and 'e' in w
twin := w.replace('e', 'i')
]
) in lexicon
if (twin := w.replace('e', 'i')) in lexicon
]
]