how to get rid of all null values in array python

Solutions on MaxInterview for how to get rid of all null values in array python by the best coders in the world

showing results for - "how to get rid of all null values in array python"
Emilie
07 Apr 2016
1mylist = [1, 2, 3, '', 4]
2mylist = [i for i in mylist if i != '']