I\'m using Beautiful Soup in Python to scrape some data from HTML files. In some cases, Beautiful Soup returns lists that contain both string and NoneType
string
NoneType
I think the cleanest way to do this would be:
#lis = some list with NoneType's filter(None, lis)