KnowledgeHub
Questions
Tags
Users
Search
Alex Rivera
|
Logout
Edit Question
Title
Body
How can I do something like the following in Python? row = [unicode(x.strip()) if x for x in row] Basically, a list comprehension where you carry out a function if the variable exists. Thanks!
Tags (comma-separated)
Save Edits
Cancel