>>> sentence = ['this','is','a','sentence'] >>> '-'.join(sentence) 'this-is-a-sentence'
listvalues = ['a', 'b', 'c'] concstring = ''.join(l)