Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

python join list with comma

my_list = ['a', 'b', 'c', 'd']
my_string = ','.join(map(str, my_list)) #Ensures values are processed as strings
#Result:
'a,b,c,d'
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #python #join #list #comma
ADD COMMENT
Topic
Name
7+4 =