Hey, so i want to make a funktion that prints all the words from a list (words.txt) that doesn't contain the letter e.
I tried something like this:
def has_no_e2(word):
fin = open('words.txt')
for line in fin:
word = line.strip()
if letter in word:
letter == ('e')
print(word)
But i just can't make it work!
Please help.