c# filter objects in list with non empty string code example Example: python filter list empty string str_list = list(filter(None, str_list))