Write a program to Remove empty strings from the list of strings


Topic: Write a program to Remove empty strings from the list of strings

Solution

list1 = ["Mike", "", "Emma", "Kelly", "", "Brad"]
resList = [i for i in (filter(None, list1))]
print(resList)



List all Python Programs