join() - Joins the elements of an iterable to the end of the string

Joins an array of strings with the specified string.

Example

Python
str = '<->'.join(('Hello', 'World'))
print(str)

Output

Hello<->World

Notes: Any "iterable" object such as a list, tuple, dictionary, or set is iterable.

Example of joining a dictionary -- note that the keys are joined, not the values:

Python
fields = {'salePrice':49, 'discount': .5}
print('*'.join(fields))

Output

salePrice*discount