Path: csiph.com!v102.xanadu-bbs.net!xanadu-bbs.net!feeder.erje.net!eu.feeder.erje.net!weretis.net!feeder4.news.weretis.net!rt.uk.eu.org!newsfeed.xs4all.nl!newsfeed2.news.xs4all.nl!xs4all!newsgate.cistron.nl!newsgate.news.xs4all.nl!post.news.xs4all.nl!not-for-mail Return-Path: X-Original-To: python-list@python.org Delivered-To: python-list@mail.python.org X-Spam-Status: OK 0.083 X-Spam-Evidence: '*H*': 0.86; '*S*': 0.02; 'cc:addr:python-list': 0.11; 'sat,': 0.16; 'wrote:': 0.18; 'aug': 0.22; 'cc:addr:python.org': 0.22; 'header:User-Agent:1': 0.23; 'cc:2**0': 0.24; 'cc:no real name:2**0': 0.24; 'define': 0.26; 'header:In-Reply-To:1': 0.27; 'charset:us-ascii': 0.36; 'skip:- 20': 0.37; 'subject:space': 0.84; '2013,': 0.91 Date: Wed, 11 Sep 2013 06:36:11 -0500 (CDT) From: Wayne Werner X-X-Sender: wayne@gilgamesh To: candide Subject: Re: print function and unwanted trailing space In-Reply-To: <5221a693$0$2059$426a74cc@news.free.fr> References: <5221a693$0$2059$426a74cc@news.free.fr> User-Agent: Alpine 2.02 (DEB 1266 2009-07-14) MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII; format=flowed Cc: python-list@python.org X-BeenThere: python-list@python.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: General discussion list for the Python programming language List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Newsgroups: comp.lang.python Message-ID: Lines: 10 NNTP-Posting-Host: 2001:888:2000:d::a6 X-Trace: 1378899450 news.xs4all.nl 15891 [2001:888:2000:d::a6]:37291 X-Complaints-To: abuse@xs4all.nl Xref: csiph.com comp.lang.python:53951 On Sat, 31 Aug 2013, candide wrote: > # ----------------------------- > for i in range(5): > print(i, end=' ') # <- The last ' ' is unwanted > print() > # ----------------------------- Then why not define end='' instead? -W