The only difference is when you want to include " or ' inside the string.  If
you want to include the "like" quote, then escape it ("\"", '\'').  If you
include the "unlike" quote, no escape is needed ("'" or '"').

I think that people new to programming will use '' if it is unshifted on their
keyboards.  People from a "C" background may use "" for strings (since in that
language, '' is for a single character only).

Jeff

Attachment: pgpEe2VSQ8HTg.pgp
Description: PGP signature

-- 
http://mail.python.org/mailman/listinfo/python-list

Reply via email to