I have this function which is printing out all odd numbers between 1
and 100
. I want a comma ,
between all numbers except the last one 99
for i in range(1,100,2):
print(str(i), end=',')
What I got:
1, 3, 5, 7, 9, 11, 13, 15 ... 97, 99,
What I want:
1, 3, 5, 7, 9, 11, 13, 15 ... 97, 99