Skip to content

Commit f91c46b

Browse files
authored
Update python_essentials.md
The text mentions using format() method, but the actual code uses f-strings.
1 parent 515c33d commit f91c46b

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

lectures/python_essentials.md

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -470,6 +470,8 @@ data_file.close()
470470

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

473+
**Issue: The text mentions using format() method, but the actual code uses f-strings. This might create confusion for learners?**
474+
473475
The reformatting of each line is the result of three different string methods,
474476
the details of which can be left till later.
475477

@@ -1090,4 +1092,4 @@ n = 100
10901092
```
10911093

10921094
```{solution-end}
1093-
```
1095+
```

0 commit comments

Comments
 (0)