I am trying to remove multiple strings from a list without the letter "a".
I have tried to use a function to remove every word without the letter "a" in my list
myList = ['advertisement', 'start', 'clever', 'billowy', 'melted', 'charge', 'longing', 'disgusting', 'phobic', 'carry', 'chew', 'big', 'mist', 'warn', 'faint']
def new_list(myList):
for word in myList:
if 'a' not in word:
myList.remove(word)
return myList
print(new_list(myList))
>>> ['advertisement', 'start', 'billowy', 'charge', 'disgusting', 'carry', 'big', 'warn', 'faint']
I expected it to remove all words without the letter "a" in it, but it is still outputting the words "billowy", "disgusting" and "big".