The method join() returns a string in which the string elements of sequence have been joined by str separator.
Following is the syntax for join() method ?
This method returns a string, which is the concatenation of the strings in the sequence seq. The separator between elements is the string providing this method.
The following example shows the usage of join() method.
s = "-";
seq = ("a", "b", "c"); # This is sequence of strings.
print s.join( seq )
When we run above program, it produces following result ?