Search notes:

Python: str.join()

join is the «opposite» of split() and rsplit().
It requires an iterable as its only parameter.
#!/usr/bin/python

a = ['foo', 'bar', 'baz'];

print ("-".join(a))
# foo-bar-baz
Github repository about-python, path: /built-in/types/str/join.py

See also

str

Index