From 1ca21eb2ca2f19b2d6eb43e8fd4a0aad0eae60fb Mon Sep 17 00:00:00 2001 From: Gan Phua <16132124+GanPhua@users.noreply.github.com> Date: Wed, 16 Jan 2019 16:28:44 +0800 Subject: [PATCH] Update strings.md --- markdown-version/strings.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/markdown-version/strings.md b/markdown-version/strings.md index 72bfdd6..47fe2d3 100644 --- a/markdown-version/strings.md +++ b/markdown-version/strings.md @@ -35,11 +35,11 @@ There's a new method to interpolate the strings * The method is called the F-strings this will help you convert the int value into a string ```Python x = 10 -print(f"I have told you " {x} times to clean the floor correctly") +print(f"I have told you {x} times to clean the floor correctly") # This will print I have told you 10 times to clean the floor correctly # This a new way of interpolating string y = 'I have told you {x} times to clean the floor correctly'.format(x) -# This an old way of doing it and its applicable in python 2.7 +# This an old way of doing it and its applicable in **python 2.7** ``` #### String Index