Aug-31-2017, 04:55 PM
(Aug-31-2017, 04:12 PM)Zork_3 Wrote: I would like to know is there a standard that most Of you use ?PEP8.org (Better CSS styled pep-8 website).
String Quotes
Quote:In Python, single-quoted strings and double-quoted strings are the same.
This PEP does not make a recommendation for this.
Pick a rule and stick to it.
When a string contains single or double quote characters, however, use the other one to avoid backslashes in the string.
It improves readability.
For triple-quoted strings, always use double quote characters to be consistent with the docstring convention in PEP 257.
Zork_3 Wrote:It seems to me that double quotes would be bestMy rule is that i always use single quotes,easier to type and i think it look better
