python how to remove empty strings from list code example Example: python filter list empty string str_list = list(filter(None, str_list))