Difference between " and '

Michael Hoffman cam.ac.uk at mh391.invalid
Fri Jul 22 09:24:22 CEST 2005

Steven D'Aprano wrote:
> Michael Hoffman wrote:
>> John Machin wrote:
>>> b83503104 at yahoo.com wrote:
>>>> Can someone tell me the difference between single quote and double
>>>> quote?
>>>  >>> ord("'") - ord('"')
>>> 5
>> Very zen.
> But unfortunately incorrect, since the original poster didn't ask for 
> the difference between the ordinal values of the single quote and double 
> quote characters, but for the difference between the characters themselves.

It reminded me of a zen koan, because although it was a joke at the 
expense of original poster, the true answer was still contained within 
when the answerer had to use different kinds of quoting to quote single 
and double quotes.
Michael Hoffman

More information about the Python-list mailing list