Find words whose first and last three letters are equal: Difference between revisions

Content added Content deleted
(Added Python implementation)
m (Added file closure statement)
Line 522: Line 522:


wordList = dictionary.read().split('\n')
wordList = dictionary.read().split('\n')

dictionary.close()


for word in wordList:
for word in wordList: