python concatenate lists of strings code example
Example 1: Concatenate Item in list to strings
>>> sentence = ['this','is','a','sentence']
>>> '-'.join(sentence)
'this-is-a-sentence'
Example 2: python concatenate list of lists
x = [["a","b"], ["c"]]
result = sum(x, [])