Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.python > #63176 > unrolled thread

Re: print range in python3.3

Started byMark Lawrence <breamoreboy@yahoo.co.uk>
First post2014-01-05 08:03 +0000
Last post2014-01-05 08:03 +0000
Articles 1 — 1 participant

Back to article view | Back to comp.lang.python

This discussion starts older than the indexed window; earlier articles aren't shown. The article labeled Started by below is the oldest one visible, not the original post.


Contents

  Re: print range in python3.3 Mark Lawrence <breamoreboy@yahoo.co.uk> - 2014-01-05 08:03 +0000

#63176 — Re: print range in python3.3

FromMark Lawrence <breamoreboy@yahoo.co.uk>
Date2014-01-05 08:03 +0000
SubjectRe: print range in python3.3
Message-ID<mailman.4934.1388908990.18130.python-list@python.org>
On 05/01/2014 07:38, luofeiyu wrote:
>>>> range(1,10)
> range(1, 10)
>>>> print(range(1,10))
> range(1, 10)
>
> how can i get 1,2,3,4,5,6,7,8,9 in python3.3 ?
>

for i in range(1,10):
     print(i, end=',')
print()

I hope you can cope with the comma at EOL :)

-- 
My fellow Pythonistas, ask not what our language can do for you, ask 
what you can do for our language.

Mark Lawrence

[toc] | [standalone]


Back to top | Article view | comp.lang.python


csiph-web