DekGenius.com
Home
(current)
Dictionary
BOOKS
LYRICS
CHORD
SCRIPT & CODE EXAMPLE
Karaoke language
Search
Go
SCRIPT & CODE EXAMPLE
CODE EXAMPLE FOR PYTHON
separate each characters by commas into a single string
>>> ','.join('Hello world') 'H,e,l,l,o, ,w,o,r,l,d' >>> ','.join(['Hello', 'world']) 'Hello,world'
Source by stackoverflow.com #
PREVIOUS
NEXT
Tagged:
#separate
#characters
#commas
#single
#string
ADD COMMENT
Topic
COMMENT
Name
1+8 =
Submit