From 3176f36bd261ea90bc29e908a57db17807f14a3a Mon Sep 17 00:00:00 2001 From: l3onhard Date: Mon, 6 Oct 2025 13:54:04 +0200 Subject: [PATCH] fix(curriculum): add brief explanation of strings (#62495) Co-authored-by: Huyen Nguyen <25715018+huyenltnguyen@users.noreply.github.com> Co-authored-by: Ilenia <26656284+ilenia-magoni@users.noreply.github.com> --- .../67fe8597975ea634042cad8f.md | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/curriculum/challenges/english/blocks/lecture-introduction-to-python/67fe8597975ea634042cad8f.md b/curriculum/challenges/english/blocks/lecture-introduction-to-python/67fe8597975ea634042cad8f.md index 3f18e4313ea..e4132996d4c 100644 --- a/curriculum/challenges/english/blocks/lecture-introduction-to-python/67fe8597975ea634042cad8f.md +++ b/curriculum/challenges/english/blocks/lecture-introduction-to-python/67fe8597975ea634042cad8f.md @@ -16,13 +16,14 @@ name = 'John Doe' age = 25 ``` +In the example above, the variable `name` holds the value `'John Doe'`. This value is a string, which is a series of characters used to represent text. Strings are written with single or double quotes, for example `'Hello'` or `"Hello"`. In future lessons, you'll learn more about working with strings in Python. + When naming variables in Python, there are some important rules you should keep in mind: -- Variable names can only start with a letter or an underscore (`_`), not a number. -- Variable names can only contain alphanumeric characters (`a-z`, `A-Z`, `0-9`) and underscores (`_`). +- Variable names can only start with a letter or an underscore (`_`), not a number. +- Variable names can only contain alphanumeric characters (`a-z`, `A-Z`, `0-9`) and underscores (`_`). - Variable names are case-sensitive — `age`, `Age`, and `AGE` are all considered unique. - Variable names cannot be one of Python's reserved keywords such as `if`, `class`, or `def`. - If you break any of those rules, your Python program will throw a `SyntaxError`: