Remove empty strings from a list of strings,str_list = list([_f for _f in str_list if _f])