Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

python add commas to list

Use str. join() to make a list into a comma-separated string

a_list = ["a", "b", "c"]
joined_string = ",". join(a_list) Concatenate elements of `a_list` delimited by `","`
print(joined_string)
Source by www.kite.com #
 
PREVIOUS NEXT
Tagged: #python #add #commas #list
ADD COMMENT
Topic
Name
8+6 =