summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorRyota Kayanuma <picosushi12+git@gmail.com>2019-07-15 17:26:57 +0900
committerRyota Kayanuma <picosushi12+git@gmail.com>2019-07-15 17:26:57 +0900
commita9a01e4fff78ba325738dd2d344970a153277a0d (patch)
tree1d65d9fd1da332a3a40d926ee44f07781424e461
parent84cb0e88995b6d2f04a119cc25a695a33e1cbf9f (diff)
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