Here is my code
list = [1,2,3]
for i in list:
print(i)
This is the output
1
2
3
What I'm looking for
1, 2, 3
If python 3
print(i, end =", ")
If python 2 append a comma to the print to escape the newline
print(i),
A mixture of generators and join
lst = [1,2,3]
print(','.join(str(i) for i in lst))