I'm trying to remove items within list1 of the same index based on the occurence of a substring in list2.
List1 = ["1", "2", "3", "4"]
List2 = ["Remove1", "Remove2", "OtherValue1", "Othervalue2"]
Result should be:
List1 = ["3", "4"]
List2 = ["OtherValue1", "Othervalue2"]
From a logical view:
Check if element in List2 starts with/includes substring "Remove" and if true: remove this entry and entry in List1 with the same index.
I searched a lot of threads & questions but usually they want to compare 2 lists with (partially) identical entries and filter them accordingly. There are numerous ways I could think of performing it from a logical point of view, unfortunately I'm lacking of pythons syntax knowledge to put it together (once I would see the correct code I most likely will say "sure, easy, makes sense" -.-")
Thanks for the help in advance, Toby