[Tutor] Printing without a line feed

Alan Gauld alan.gauld at yahoo.co.uk
Thu Mar 25 07:42:22 EDT 2021


On 25/03/2021 09:19, Peter Otten wrote:

> Or you can use the star operator:
> 
>>>> print(*range(6))
> 0 1 2 3 4 5

Ooh, I like that!
I wish I'd thought of it. Very neat.


-- 
Alan G
Author of the Learn to Program web site
http://www.alan-g.me.uk/
http://www.amazon.com/author/alan_gauld
Follow my photo-blog on Flickr at:
http://www.flickr.com/photos/alangauldphotos




More information about the Tutor mailing list