Difference between double and single quotes

Remco Gerlich scarblac-spamtrap at pino.selwerd.nl
Tue Aug 1 08:15:09 EDT 2000


pauljolly at my-deja.com wrote in comp.lang.python:
> Please can someone tell me whether Python distinguishes between double
> and single quotes in any way? This was brought to my attention by a
> friend who queried my use of double and single quotes, saying that in
> the UNIX shell a distinction is made.

Python doesn't distinguish. Use the easiest one (use "" if you have ' inside
the string and vice versa).

-- 
Remco Gerlich,  scarblac at pino.selwerd.nl
'Oook?'



More information about the Python-list mailing list