I have a programm creating list like those:
["abc a","hello","abc","hello z"]
My goal is to move in list and if the element is contained in one of the string remove the string
first iteration:
# abc a can't be found in any other element:
["abc a","hello","abc","hello z"]
second one:
# hello is present in element 4:
["abc a","hello","abc"]
third one:
# abc can be found in element one:
["hello","abc"]
I have tried using the filter() function without success
I want every element to pass in the function the only problem is that the list size is reducing therefore this is another problem i dont know how to treat
Thank you