From 71e82cf3c0270de3f0dd6960372f6596e5c99ac2 Mon Sep 17 00:00:00 2001 From: munyumunyu <58355418+munyumunyu@users.noreply.github.com> Date: Fri, 11 Dec 2020 19:04:18 +0300 Subject: [PATCH] Update strings.md line 41 {x} giving a key error...sorry again if i am wrong..i am new at coding and trying to learn.. --- markdown-version/strings.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/markdown-version/strings.md b/markdown-version/strings.md index 7f3b81a..9f052ad 100644 --- a/markdown-version/strings.md +++ b/markdown-version/strings.md @@ -38,7 +38,7 @@ x = 10 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) +y = 'I have told you {} times to clean the floor correctly'.format(x) # This an old way of doing it and its applicable in **python 2.7** ```