how to get rid of all strings that are empty code example Example: python filter list empty string str_list = list(filter(None, str_list))