The join( ) Function is used to join all the elements of a collection(i.e. list, set e.t.c.) into one string.
x = ['Hello', 'Beautiful', 'World'] y = "@".join(x) print(y)
In the above code, we have declared a list with values 'Hello', 'Beautiful' and 'World'.And assigned it to a variable 'x'.
Then we have used the 'join( )' function to take all the three values from the list and join them separated using '@'.