Returns a string made from the elements of an iterable.
str. join(iterable)
- iterable
- Required. The iterable used for creating the string.
str
#TODO
The separator between elements is the string providing this method.
>>> ''.join(['A', 'B', 'C'])
'ABC'
>>> ''.join({'A': 0, 'B': 0, 'C': 0}) # note that dicts are unordered
'ACB'
>>> '-'.join(['A', 'B', 'C']) # '-' string is the seprator
'A-B-C'#TODO