quotes at the edges of a triple quote string...

Anthony Roberts acrobert-at-ucalgary-dot-ca at ucalgary.ca
Sat May 1 12:22:07 EDT 2004


> Can't you still use a triple-quoted string, but escape the
> last quote?
> 
>  >>> """test\""""
> 'test"'

Yes... yes I can. I can also use the other quotetation marks. I realized 
this just after I posted.

 >>> '''test"'''
'test"'

Either way works.

Thank you for the quick response. :)



More information about the Python-list mailing list