Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions markdown-version/strings.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down