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** ```