I want to print all of the integers in the range 1000-3000 that are even and then print them in one line, each seperated by a comma. This is my code so far:
for i in range (1000,3001):
s = str(i)
if i % 2 == 0:
print (i)
If I try to add the split() function, this error occurs: 'int' object has no attribute 'split'
How can I do this?