First page Back Continue Last page Overview Graphics

join()

str.join(iterable)

Returns a string which is the concatenation of the strings in the iterable iterable.

The separator between elements is the string providing this method.

Examples:

>>> x = ["Python","Perl","Java"]

>>> "-".join(x)

'Python-Perl-Java'

>>> x = "48772"

>>> ".".join(x)

'4.8.7.7.2'