Recently while coding a python script I learnt this.

We can make use of the filter Python function to remove empty items from a list.

how do we do it?

filter(None, list_name)

About these ads