New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
gh-81039: Add small description of f-string's "=}" to tutorial #92291
Conversation
Maybe something like And this tutorial section could possibly also use an example for printing the curly brackets too
|
|
The last example you provided is very nice. I would split the example of showing |
It is a good example, except I'd make |
|
Thanks @slateny for the PR, and @ericvsmith for merging it |
|
GH-96989 is a backport of this pull request to the 3.11 branch. |
…hongh-92291) (cherry picked from commit 4b81139) Co-authored-by: Stanley <46876382+slateny@users.noreply.github.com>
|
GH-96990 is a backport of this pull request to the 3.10 branch. |
…hongh-92291) (cherry picked from commit 4b81139) Co-authored-by: Stanley <46876382+slateny@users.noreply.github.com>
#81039
https://docs.python.org/3/tutorial/inputoutput.html#formatted-string-literals
https://docs.python.org/3/whatsnew/3.8.html#f-strings-support-for-self-documenting-expressions-and-debugging