Daily Archives: January 25, 2019

Split by comma and strip whitespace in Python

I would rather end up with whitespace removed like this: I am aware that I could loop through the list and strip() each item but, as this is Python, I’m guessing there’s a quicker, easier and more elegant way of doing it. Use list... Read More | Share it now!