Answers for "python join list ignore none and empty string"

0

python join list ignore none and empty string

>>> strings = ['foo','','bar','moo']
>>> ' '.join(filter(None, strings))
'foo bar moo'
Posted by: Guest on November-07-2020

Code answers related to "python join list ignore none and empty string"

Python Answers by Framework

Browse Popular Code Answers by Language