I have a list of strings like this:
string_list=["abcdefg","qwrbcdqqq","ophdkjhfkbcd","jdfkvndn"]
Notice that a word exists in some of them (here bcd
) but the location of this word is not fixed and changes in each string. Now how do I remove this word from those strings if I know what the word is?
Edit: Target list is:
target_list=["aefg","qwrqqq","ophdkjhfk","jdfkvndn"]