[Python-il] [pyweb-il:190] Re: A random python question about quotation marks

Ahik Man ahik.man at gmail.com
Wed Feb 18 09:04:35 IST 2009

+1 for single quotes.

1. Aesthetic
2. Practical. Internal string in single, external in double.
For example,HTML code assignment: python_str = '<TABLE border="1">'


On Wed, Feb 18, 2009 at 2:04 AM, Rani Hod <rani.hod at gmail.com> wrote:
>> When you code in python, when do you prefer "double quotes" and when do you use 'single quotes'?
>> I mean for most of the little strings in your python code. What's your preference?
> Usually single quotes, as these don't require the shift key.
> >

You received this message because you are subscribed to the Google Groups "PyWeb-IL" group.
To post to this group, send email to pyweb-il at googlegroups.com
To unsubscribe from this group, send email to pyweb-il+unsubscribe at googlegroups.com
For more options, visit this group at http://groups.google.com/group/pyweb-il?hl=en

More information about the Python-il mailing list