my output from a forloop is
string = \"\" for x in something: #some operation string = x += string print(string) 5 66 777
I use
If you can first construct a list of strings, you can then use sequence unpacking within print and use sep instead of end:
print
sep
end
strings = ['5', '66', '777'] print(*strings, sep=', ') 5, 66, 777