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

we are a community of more than 2 million smartest coders
registration for
employee referral programs
are now open
get referred to google, amazon, flipkart and more
register now
  
pinned-register now
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 != '']