If you really just want to join your elements into a comma+newline-separated string then it's easier to use str.join method:
elements = ['hello', 9, 3.14, 9]
s = ',\n'.join(str(el) for el in elements)
# And you can do whatever you want with `s` string:
print(s)