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

14 lines
189 B
Python

>>> from sys import stdout
>>> write = stdout.write
>>> n, i = 10, 1
>>> while True:
write(i)
i += 1
if i > n:
break
write(', ')
1, 2, 3, 4, 5, 6, 7, 8, 9, 10
>>>