# Python program to demonstrate the # use of join function to join list # elements with a character.
list1 = ['1','2','3','4']
s = "-"# joins elements of list1 by '-' # and stores in sting s s = s.join(list1)
# join use to join a list of # strings to a separator s print(s)
OUTPUT:
1-2-3-4