end quote help for a newbie
Skip Montanaro
skip at pobox.com
Thu Jan 30 08:36:03 EST 2014
Not sure if this is exactly what you're asking, but perhaps you want triple
quotes?
>>> print "now is the time for all good men ..."
now is the time for all good men ...
>>> print '''now is the time for "all good men" ...'''
now is the time for "all good men" ...
It's not easy to visually distinguish two apostrophes from a double quote
in all fonts, so I've explicitly written this using rich text and
highlighted the Python session snippet in Courier.
Skip
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/python-list/attachments/20140130/6a8b8b67/attachment.html>
More information about the Python-list
mailing list