Hey ,
Have a task i want to do I have a .txt file with mispelt words and a .txt file which is a dictionary and has correct spelling of words now i know that i need to split both of the .txt files into words , i need to convert the mispelt.txt to lower case (but alway get object has no attribute) and then subtract them form each other and whats left will be the mispelt words
mispel.txt is text with mispelt words
corspel.txt is dictionary
here is what i have so far that split the mispelt.txt into lines
import sys
import string
infile = open('mispel.txt', 'r')
infile2 = open('corspel.txt', 'r').read()
words = set(open('mispel.txt').read().split())