I have the following Python list:
a = [2, 3, 4, False, 10, 1, False, 20]
I would like to know which pythonic way would be used to replace all Falses with ''. I have tried to find a .replace method but can not find something applicable to all items (as it happens in Pandas).
Python 2.7