apostrophe or double quote?
James Stroud
jstroud at ucla.edu
Tue Feb 7 23:09:54 EST 2006
Huy wrote:
> I've been unable to find information clarifying this but. What is the
> difference between 'somestring' and "somestring"? When I use type() it
> still reports as string. If there is a difference could someone point
> me to documentation or explain when to use and when not to? Hope I
> sound clear.
>
There is no difference. However, compare the following:
py> 'internal quotes: "'
'internal quotes: "'
py> "internal apostrophe: '"
"internal apostrophe: '"
py> 'astring'
'astring'
py> "astring"
'astring'
More information about the Python-list
mailing list