with open(\'words.txt\', \'r\') as read: line = read.readlines() key_list = [] def make_anagram_dict(line): word_list = {} for word in line: word