Source Code:
(back to article)
my_list = ["hello", "", "world", "", "goodbye"] my_list = [x for x in my_list if x != ""] print(my_list)
Result:
Report an issue