From f91c46b9f4fdaf95275d3b7e18912efb5dc3ee5c Mon Sep 17 00:00:00 2001 From: Jae Yung Kim Date: Tue, 10 Jun 2025 15:35:28 +0100 Subject: [PATCH] Update python_essentials.md The text mentions using format() method, but the actual code uses f-strings. --- lectures/python_essentials.md | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/lectures/python_essentials.md b/lectures/python_essentials.md index bc8feb10..bf7532cc 100644 --- a/lectures/python_essentials.md +++ b/lectures/python_essentials.md @@ -470,6 +470,8 @@ data_file.close() Here `format()` is a string method [used for inserting variables into strings](https://docs.python.org/3/library/string.html#formatspec). +**Issue: The text mentions using format() method, but the actual code uses f-strings. This might create confusion for learners?** + The reformatting of each line is the result of three different string methods, the details of which can be left till later. @@ -1090,4 +1092,4 @@ n = 100 ``` ```{solution-end} -``` \ No newline at end of file +```