python join list with comma

Solutions on MaxInterview for python join list with comma by the best coders in the world

showing results for - "python join list with comma"
Jonas
29 Apr 2019
1my_list = ['a', 'b', 'c', 'd']
2my_string = ','.join(map(str, my_list)) #Ensures values are processed as strings
3#Result:
4'a,b,c,d'