The method join() returns a string in which the string elements of sequence have been joined by str separator.
sequence -- This is a sequence of the elements to be joined.
str.join(sequence)
#!/usr/bin/python s = "-"; seq = ("a", "b", "c"); # This is sequence of strings. print s.join( seq )
When we run above program, it produces following result −
a-b-c