RosettaCodeData/Task/Loops-N-plus-one-half/Python/loops-n-plus-one-half-2.py
Ingy döt Net db842d013d A-M baby
2013-04-10 21:29:02 -07:00

13 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
>>>