how to print concatenate list with string in 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 concate a string to all elements in a list in python
[s + mystring for s in mylist]