Quotes
David Eppstein
eppstein at ics.uci.edu
Fri Dec 20 00:40:55 EST 2002
In article <2304302.1040355303 at dbforums.com>,
Tetsuo <member at dbforums.com> wrote:
> print "The book is called "Harry Potter and the Philosopher's Stone.""
>
> How do I get the user to see
>
>
> The book is called "Harry Potter and the Philosopher's Stone."
The easy solution is:
print 'The book is called "Harry Potter and the Philosopher's Stone".'
(period changed to US outside-the-quote style to make it easier to see
how the quote marks nest.)
--
David Eppstein UC Irvine Dept. of Information & Computer Science
eppstein at ics.uci.edu http://www.ics.uci.edu/~eppstein/
More information about the Python-list
mailing list