Change e letters to i in words: Difference between revisions

m
m (→‎{{header|Python}}: Simplified an expression.)
Line 1,143:
in unixdict.txt
'''
for pair in ieTwins(
ieTwinsreadFile("unixdict.txt")
readFile("unixdict.txt")
)
):
print(pair)
Line 1,155 ⟶ 1,153:
# readFile :: FilePath -> IO String
def readFile(fp):
'''The contents of any file at the path fp.
derived by expanding any ~ in fp.
'''
with open(fp, 'r', encoding='utf-8') as f:
9,655

edits