\t not working
Brian Blais
bblais at bryant.edu
Wed May 17 12:40:31 EDT 2006
Alex Pavluck wrote:
> I am just learning Python and I am using the book, "Thinking like a
> Computer Scientist". There is an exercise that I am not able to get
> working and it is really easy so I thought I would ask for help here.
>
>
> Q: As an exercise, write a single string that:
> Procuces
> this
> output.
>
>
> A?
> print "produces",'\n',"\t","this","\n","\t","output."
>
You could use:
print "produces \n\t this \n\t\t output"
bb
--
-----------------
bblais at bryant.edu
http://web.bryant.edu/~bblais
More information about the Python-list
mailing list