Consider a list I want to parse using a for :
for
friends = [\"Joe\", \"Zoe\", \"Brad\", \"Angelina\", \"Zuki\", \"Thandi\", \"Paris\"] for i in fri
If you want to join the values in friends into a comma-separated string, that would be
friends
s = ','.join(friends)
If you want to include quotes around the names, maybe something like
s = ','.join(['"{0}"'.format(x) for x in friends])