We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 1ed388a commit 6837167Copy full SHA for 6837167
python.md
@@ -157,6 +157,12 @@ version control system can provide that information just as well.
157
*[cf. Google Python Style Guide
158
[Strings](https://google.github.io/styleguide/pyguide.html#310-strings)]*
159
160
+#### Quotes
161
+Favor double quotes `"` over single quotes `'` for regular strings, unless the
162
+string itself contains double quotes. If the string contains both single and
163
+double quotes, pick whatever requires less escaping inside the string.
164
+
165
+#### String Formatting
166
Use `f"...{var}"` when writing Python 3.6+ code, or `"...{0}".format(var)`
167
anywhere. `"..." + var` may be used for simple cases, but beware of pitfalls
168
such as easily missed whitespace, or `var` not being a string. Don't use the
0 commit comments