what does ' '.join do in 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: join function in python
"seperator".join(list/tuple)
>>> sentence = ['this','is','a','sentence']
>>> '-'.join(sentence)
'this-is-a-sentence'
"seperator".join(list/tuple)