I have a dict where the values are a list of strings. Some values in this list are empty (like empty string). Now I need the dict with all the keys as original but want to remove the empty values from the list. Could someone please help as I think it can be done using filter() for lists in python. Below is an example of the original and final dict required
original_dict = {"abc": ["","red","green","blue"], "def":["amber","silver","","gold","black","",""]}
output_dict = {"abc": ["red","green","blue"], "def":["amber","silver","gold","black"]}