DekGenius.com
Home
(current)
Dictionary
BOOKS
LYRICS
CHORD
SCRIPT & CODE EXAMPLE
Karaoke language
Search
Go
SCRIPT & CODE EXAMPLE
CODE EXAMPLE FOR PYTHON
python merge list into string
>>> sentence = ['this','is','a','sentence'] >>> '-'.join(sentence) 'this-is-a-sentence'
Source by stackoverflow.com #
PREVIOUS
NEXT
Tagged:
#python
#merge
#list
#string
ADD COMMENT
Topic
COMMENT
Name
7+9 =
Submit