[Tutor] print output

vishwajeet singh dextrous85 at gmail.com
Thu Apr 16 20:04:50 CEST 2009


try this print str(counter) + "\n" + str(miles) + "\n"+ name

On Thu, Apr 16, 2009 at 11:24 PM, mbikinyi brat <mbikinyi_brat at yahoo.com>wrote:

> **
> *Dear ALL,*
> I have defined variables as below and when I call them using the print
> function, I have something discontinous as in pink colour. How do I call it
> so that my output should be as in blue
> *>>> counter=101
> >>> miles=1000
> >>> name="joe"
> *
> >>> print counter
> 101
> >>> print miles
> 1000
> >>> print name
> joe
> >>>
> What I want:(Output)
>
> 101
> 1000
> joe
> Regards,
> Henry
>
>
> _______________________________________________
> Tutor maillist  -  Tutor at python.org
> http://mail.python.org/mailman/listinfo/tutor
>
>


-- 
Cheers,
Vishwajeet
http://www.singhvishwajeet.com
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/tutor/attachments/20090416/90632008/attachment.htm>


More information about the Tutor mailing list