I have a dictionary whose keys are strings and values are numbers. I have another list of strings. I want to filter the dictionary by removing all key, value pairs if the key is a string in the list of string.
So for example: dict={"good":44,"excellent":33,"wonderful":55}, randomList=["good","amazing","great"]
Then the method should give newdict={"excellent":33,"wonderful":55}
I'm wondering if there is a way to do it using very little codes. Is there a way to do it fast?