for i in range(1,9): print(i)
Output:1 2 3 4 5 6 7 8
print(i),
print(i, end = ',')
for i in range(1, 9): print(i, end=' ')