Skip to content

Commit 6374bb3

Browse files
authored
FIX: clarify format() and f-strings (#355)
1 parent 515c33d commit 6374bb3

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lectures/python_essentials.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -468,7 +468,7 @@ for line in data_file:
468468
data_file.close()
469469
```
470470

471-
Here `format()` is a string method [used for inserting variables into strings](https://docs.python.org/3/library/string.html#formatspec).
471+
Here `f'` is an f-string [used for inserting variables into strings](https://docs.python.org/3/library/string.html#formatspec).
472472

473473
The reformatting of each line is the result of three different string methods,
474474
the details of which can be left till later.

0 commit comments

Comments
 (0)