how to concat strings in a list together python code example
Example 1: Concatenate Item in list to strings
>>> sentence = ['this','is','a','sentence']
>>> '-'.join(sentence)
'this-is-a-sentence'
Example 2: how to concatenate two lists in python
listone = [1,2,3]
listtwo = [4,5,6]
joinedlist = listone + listtwo