Remove empty strings from a list of strings in Python

Posted by Ramesh Singh | Updated on

In this answer, I have shared how to remove empty strings from a list of strings using python. Use the following Python example:

Python 3 returns an iterator from filter, so should be wrapped in a call to list()


If you like this question & answer and want to contribute, then write your question & answer and email to freewebmentor[@]gmail.com. Your question and answer will appear on FreeWebMentor.com and help other developers.

Related Questions & Answers