Strings: double versus single quotes
DL Neil
PythonList at DancesWithMice.info
Fri May 22 17:36:13 EDT 2020
>>> I am asking myself if I should preferably use single or double
>>> quotes for strings?
...
> I agree to the following:
>
> 1. Consistency is important.
> 2. Single quotes are less noisy.
> 3. Triple double quotes are to be preferred over triple single quotes.
...
> Of course, this is my subjective result, and others (may) have
> different opinions.
4. unless a specific objective of a re-factoring exercise, maintain the
conventions used within the code.
5, adhere to the conventions/standards/requirements of the dev.team or
organisation.
--
Regards =dn
More information about the Python-list
mailing list