Bruscino
Tuesday, 3 September 2013
Filter in list comprehension
Filter in list comprehension
Is it possible to add a condition to this list comprehension so that its
result does not contain empty strings:
words = [regex.sub('\P{alpha}','',word) for word in words]
No comments:
Post a Comment
Newer Post
Older Post
Home
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment