Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

join python documentation

>>> ''.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'
Source by python-reference.readthedocs.io #
 
PREVIOUS NEXT
Tagged: #join #python #documentation
ADD COMMENT
Topic
Name
9+8 =