From a9a01e4fff78ba325738dd2d344970a153277a0d Mon Sep 17 00:00:00 2001 From: Ryota Kayanuma Date: Mon, 15 Jul 2019 17:26:57 +0900 Subject: Add output for python3 f-string. --- python3.html.markdown | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 -- cgit v1.2.3