Single quotes vs double quotes

Posted by Eric Hydrick on Programmers See other posts from Programmers or by Eric Hydrick
Published on 2012-07-01T23:14:42Z Indexed on 2012/07/02 3:23 UTC
Read the original article Hit count: 247

I just started a job where I'm writing Python after coming from a Java background, and I'm noticing that other developers tend to quote strings using single quotes ('') instead of double quotes (""). For example:

line1 = 'This is how strings typically look.'
line2 = "Not like this."

Is there a particular reason for this other than personal preference? Is this the proper way to be quoting strings?

© Programmers or respective owner

Related posts about python

Related posts about coding-style