The string method join
, takes a sequence of string objects and joins them together in a single string:
>>> ', '.join( ('one', 'two', 'three') )
'one, two, three'
>>> print('\n'.join(reversed(['one', 'two', 'three'])))
three
two
one
>>> ' '.join('hello')
'h e l l o'
Recall that strings are themselves iterable sequences,so the last statement joins the letters of 'hello'
with a single space.