RosettaCodeData/Task/Loops-N-plus-one-half/Python/loops-n-plus-one-half-4.py

8 lines
109 B
Python

n, i = 10, 1
while True:
print(i, end="")
i += 1
if i > n:
break
print(", ", end="")