summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorAdam Bard <github@adambard.com>2019-07-16 14:31:25 -0700
committerGitHub <noreply@github.com>2019-07-16 14:31:25 -0700
commit7232977e6d588c807eaf2a6add7445217c0db726 (patch)
treef3ce539cd1416e87ab6b5d60634ebbbb510e1e81
parentfc684d9c50c6de6750c7f9705e6561e6ba092299 (diff)
parenta9a01e4fff78ba325738dd2d344970a153277a0d (diff)
Merge pull request #3564 from PicoSushi/add-output-for-python3-fstring
[python3/en]Add output for python3 f-string.
-rw-r--r--python3.html.markdown2
1 files changed, 1 insertions, 1 deletions
diff --git a/python3.html.markdown b/python3.html.markdown
index c4f15867..ecdbd932 100644
--- a/python3.html.markdown
+++ b/python3.html.markdown
@@ -155,7 +155,7 @@ len("This is a string") # => 16
name = "Reiko"
f"She said her name is {name}." # => "She said her name is Reiko"
# You can basically put any Python statement inside the braces and it will be output in the string.
-f"{name} is {len(name)} characters long."
+f"{name} is {len(name)} characters long." # => "Reiko is 5 characters long."
# None is an object