Isjoin() method in Python String Module
Isjoin method in string module returns the string by joining all the elements of an iterable which are separated by a string separator.
Syntax
str.isjoin()Example-1:
Using lists:
list = ["Johnny", "Peterson", "Vicky"]
x = "#".join(list)
print(x)
Output:
Example-2:
Using Tuples
Tuple= ("Anna", "Emma", "Julie")
x = "*".join(Tuple)
print(x)
Output:
Example 3:
Using Sets:
In this method the output which is returned will be in reverse order.
Sets= {"Jerry", "Tom","Spike"}
x = "&".join(Sets)
print(x)
Output:
