I am trying to run a simple python script that removes certain words containing certain letters originally part of a string, correctly separated into a list of words. I re-checked the code multiple times, yet the results are erroneous. What needs to be changed because I believe the code is correct. Please help.
s = """aline amine
avine azine
brine chine
cline coine
crine daine
dwine exine
ezine faine
feine foine
gwine imine
koine laine
Maine opine
ovine peine
quine raine
rhine saine
seine shine
spine swine
thine trine
tsine twine
Udine urine
whine"""
words = list(s.split())
for i in words:
if "s" in i:
words.remove(i)
elif "a" in i:
words.remove(i)
elif "d" in i:
words.remove(i)
elif "w" in i:
words.remove(i)
elif "u" in i:
words.remove(i)
print(words)