Hi I have a dict named 'd' and a list ' to\_be\_removed' where the values in the list are as follows:

```
d:

{'data': [' VL0002511CA       000000000682414100000000000110000        ',
 ' VL0002511ZZ       000000000682414100000000000110000        ',
 ' VL0002512  PRE1985000000000682414100000000000110000        ',
 ' VL0002521CA       000000001888990100000000000310000        ',
 ' VL0002521ZZ       000000001888990100000000000310000        ',
 ' VL0002522  PRE1985000000001888990100000000000310000        ',
 ' VL0002531CA       000000001223831100000000000210000        ',
 ' VL0002531ZZ       000000001223831100000000000210000        ',
 ' VL0002532  PRE1985000000001223831100000000000210000        ',
 ' VL0007871CA       000000001463787100000000000210000        ',
 ' VL0007871ZZ       000000001463787100000000000210000        ']}

to_be_removed:
Out[14]:

['ZZ', 'PRE']

```

I need to remove those list values which contains the string 'ZZ' and 'PRE' from the list d. So my output list should be only values:

```
final_list:
{'data': [' VL0002511CA       000000000682414100000000000110000        ',
 ' VL0002521CA       000000001888990100000000000310000        ',
 ' VL0002531CA       000000001223831100000000000210000        ',
 ' VL0007871CA       000000001463787100000000000210000        ']}

```

How can I do this in python?