O'Reilly logo
  • Sri Harsha V thinks this is interesting:

More generally, any string delimiter and iterable of strings will do:

>>> 'SPAM'.join(['eggs', 'sausage', 'ham', 'toast'])
'eggsSPAMsausageSPAMhamSPAMtoast'

From

Cover of Learning Python, 5th Edition

Note

A good example on the usage of the 'join' string method.