Answers for "Concatenate Item in list to strings"

23

Concatenate Item in list to strings

>>> sentence = ['this','is','a','sentence']
>>> '-'.join(sentence)
'this-is-a-sentence'
Posted by: Guest on April-11-2020
2

concatenate list of strings python

listvalues = ['a', 'b', 'c']
concstring = ''.join(l)
Posted by: Guest on November-26-2020

Code answers related to "Concatenate Item in list to strings"

Python Answers by Framework

Browse Popular Code Answers by Language