python join list ignore none and empty string

Solutions on MaxInterview for python join list ignore none and empty string by the best coders in the world

showing results for - "python join list ignore none and empty string"
Leo
21 Aug 2019
1>>> strings = ['foo','','bar','moo']
2>>> ' '.join(filter(None, strings))
3'foo bar moo'
4