Join multiple strings from an iterator


In [7]:
# Example data
text_items = ['This is some text.', 
              'This is also some text.', 
              'Hey, more text.', 
              'Wait, this is text too, isn\'t it?']

In [8]:
' '.join([text for text in text_items])


Out[8]:
"This is some text. This is also some text. Hey, more text. Wait, this is text too, isn't it?"