python add commas to list

Solutions on MaxInterview for python add commas to list by the best coders in the world

showing results for - "python add commas to list"
Gustave
21 Jul 2018
1Use str. join() to make a list into a comma-separated string
2
3a_list = ["a", "b", "c"]
4joined_string = ",". join(a_list) Concatenate elements of `a_list` delimited by `","`
5print(joined_string)