Whats the best way to convert a list(of string) to a string with the values seperated by a comma (,)
,
My solution:
string = ["a","2"]\n newstring = "" endOfString = len(string)-1 for item in string: newstring = newstring + item if item != string[endOfString]: newstring = newstring ","'