Re: printing
lance@markv.com
Thu, 10 Feb 94 9:04:01 PST
> From nic.cerf.net!cocaina.inesc.pt!pereira Tue Feb 8 21:08:38 1994
> Date: Wed, 9 Feb 94 00:51:47 +0100
> From: "Jose M. Pereira" <pereira@cocaina.inesc.pt>
> Cc: python-list@cwi.nl
> References: <9402081839.AA09995@express.ctron.com>
> <9402081409.aa27478@hermix.markv.com>
>
> lance@markv.com writes:
> > What I want to do is this...
> >
> > a = '1'
> > b = '2'
> >
> > print a,
> > print ',',
> > print b
> >
> > and have it come out as:
> >
> > 1, 2
> >
> >
> > not as:
> >
> > 1 , 2
> >
> > as it does now...
>
> What's wrong with:
>
> print a + ',', b
>
Nothing except that the 'print a' is before a loop,
the "print ', '" is inside the loop in an 'if' statement,
and the 'print b' is inside that same loop....
for example...
print a,
for n in <whatever>:
if <whatever condition>:
print ', ',
print b,
print ''
--
Lance Ellinghouse lance@markv.com
UNIX Systems Support support@markv.com
Mark V Systems Limited Voice: +1 818 995 7671
FAX: +1 818 995 4267