with open("dict_data.txt") as f:
word_list = [i.replace("\n","").lower() for i in f.readlines()]
possible_words = word_list
search = "model"
for word in word_list:
for i in zip(word, search):
print(i)
if i[0] != i[1]:
possible_words.remove(word)
break
print(possible_words)
possible_word copies the values of word list, when i loop through to check if the word is not the same as the guess it should remove it from possible words. But when I print possible words it is every second word from word list.