I have got a list l1 = ['00001MMYYYSSSS', '00002YYSSMMYNNN', '00003FFMMNNNSS'] and another list l2 = ['00001', '00003']. I need to remove the items at index 0 and 2 in the list l1 as it contains the string given in l2. How do I go about doing this?
I have tried the solutions mentioned [here]Is there a simple way to delete a list element by value? and [here]Python: subset elements in one list based on substring in another list, retain only one element per substring but they return an empty list. Thank you!