list join delimiter python code example
Example 1: what is join use for in python
>>> sentence = ['this','is','a','sentence']
>>> '-'.join(sentence)
'this-is-a-sentence'
Example 2: python join list
''.join(list) # If you want to join with comma (,) then: ','.join(list)