From: O'Brien-Strain, E. <eo...@ex...> - 2002-03-21 02:13:05
|
Add a trailing comma to your print to print without a newline. For example: print "foo", __ Eamonn O'Brien-Strain HP Labs eo...@hp... > -----Original Message----- > From: Ale...@di... [mailto:Ale...@di...] > Sent: Wednesday, March 20, 2002 5:51 PM > To: jyt...@li... > Subject: [Jython-users] Printing without a newline > > > > This is probably more of a python question, but I am really puzzled... > > How can I use "print" without getting the newline added after > each item I > am printing.. I mean that I ended up doing it with System.out.print > ("afadfa")... but it seems far from obvious to me.. I checked the > documentation for python, and I coldn't find it right off the bat.. > > Seems like I am missing something pretty obvious.. any help ? > > > Thanks, > > Alex Kotchnev > Diversified Information Technologies > > > _______________________________________________ > Jython-users mailing list > Jyt...@li... > https://lists.sourceforge.net/lists/listinfo/jython-users > |