def checkPassage(passageStr) """Checks to make sure all the words in the passage are spelled correctly. """ file = open(dict.txt) results = [] for word in passageStr: if word not in file: results.append(word) else: None glue = ' ' return glue.join(results)