Printing multiple lines
Bill Scherer
Bill.Scherer at VerizonWireless.com
Tue Oct 17 11:07:13 EDT 2000
These two will work:
print "firstline\nsecondline\nthirdline"
or
print """firstline
secondline
thirdline
""" # note the triple quotes
joonas wrote:
>
> How can i print multiple lines for example
>
> #######
> firstline
> secondline
> thirdline
> #######
>
> i tried
>
> print "firstline
> secondline
> thirdline"
>
> but it didnt worked.
>
> Joonas
> --
> http://www.python.org/mailman/listinfo/python-list
--
William K. Scherer
Sr. Member of Applications Staff - Verizon Wireless
Bill.Scherer_at_VerizonWireless.com
More information about the Python-list
mailing list