1# example of join() function in python
2
3numList = ['1', '2', '3', '4']
4separator = ', '
5print(separator.join(numList))
1>>> ''.join(['A', 'B', 'C'])
2'ABC'
3>>> ''.join({'A': 0, 'B': 0, 'C': 0}) # note that dicts are unordered
4'ACB'
5>>> '-'.join(['A', 'B', 'C']) # '-' string is the seprator
6'A-B-C'
7