string_name .join (iterable) string_name : It is the name of string in which joined elements of iterable will be stored.
Parameters: The join () method accepts iterables that can return their members one at a time. Some examples: list, tuple, string, dictionary and set
Return value: the join () method returns a string concatenated with iterable elements .
Type error : If the iterator contains any non-string values, it raises a TypeError.
The following program illustrates how the join ( ):
Joining with an empty string.