I have a list of values that looks something like this:
["Some", "random", "values", [], "in", "a", [], "list"]. I would like to create a new list with the empty list items removed. Like this:
["Some", "random", "values", "in", "a", "list"]. What is the easiest way of going about this? I assume using list comprehensions to build a new list is going to be the most efficient way of doing this. How would I filter this list using list comprehensions?