Write a program to remove the empty list from the given list


Topic: Write a program to remove the empty list from the given list

Solution

str_list = ["Emma", "Jon", "", "Kelly", None, "Eric", ""]
print(str_list)
new_str_list = list(filter(None, str_list))
print("After removing empty strings")
print(new_str_list)



List all Python Programs