#traditional Method
"""
fruits=["apples","kiwi","mangoes","bannas"]
newfruit=[]
for x in fruits:
    if "n" in x:
        newfruit.append(x)

print(newfruit)

"""
#in compereshio


fruitss=["apples","kiwi","mangoes","bannas"]
newfruits=[z for z in fruitss if "a" in z]

print(newfruits)