I have my function working for levenstein distance and I don\'t know on can I use it to compare a word as an argument to a txt file.
def distance(word1, word2