From 5d1fa66e08edfbe2d94793eee75b34e085b219fb Mon Sep 17 00:00:00 2001 From: Ilenia <26656284+ilenia-magoni@users.noreply.github.com> Date: Fri, 2 Feb 2024 21:24:15 +0100 Subject: [PATCH] chore(curriculum): add quotes around strings in cypher project (#53418) --- .../6551eebe6cbb2e6cadf9b468.md | 4 ++-- .../6551ef504d91936d2d4e54f8.md | 2 +- .../6551f3bfed58796ebb1268dc.md | 2 +- .../6551f6f9ec6db270eb83f3db.md | 2 +- .../6551fe3b1df7c9740f13f270.md | 4 ++-- .../6552008c0d9d9075cbec9772.md | 2 +- .../655209a4a27dd37873c4cac3.md | 2 +- .../65520f8282faf57a0db4f7fe.md | 2 +- .../655261b2e1f2c197093f3993.md | 6 +++--- .../6553980e0527fa115c705646.md | 2 +- .../6553a755879b131a445e664c.md | 4 ++-- .../6554930320d70414e7b6acc6.md | 4 ++-- .../65551a628bcb7e121e32d04b.md | 2 +- .../65553159615a8123b190ee43.md | 4 ++-- .../6555db4a7b788e15795674e5.md | 2 +- .../6555df0c81300b175308557d.md | 4 ++-- .../6555e5991af57d1ae0e35f0a.md | 4 ++-- .../65688a50e6c998a21d8e41d3.md | 2 +- .../65688b5a1655a7a6caede847.md | 4 ++-- .../6568b7a40c7ba0ccbc4b4425.md | 2 +- 20 files changed, 30 insertions(+), 30 deletions(-) diff --git a/curriculum/challenges/english/07-scientific-computing-with-python/learn-string-manipulation-by-building-a-cipher/6551eebe6cbb2e6cadf9b468.md b/curriculum/challenges/english/07-scientific-computing-with-python/learn-string-manipulation-by-building-a-cipher/6551eebe6cbb2e6cadf9b468.md index 2e6d119b78b..a880a21a027 100644 --- a/curriculum/challenges/english/07-scientific-computing-with-python/learn-string-manipulation-by-building-a-cipher/6551eebe6cbb2e6cadf9b468.md +++ b/curriculum/challenges/english/07-scientific-computing-with-python/learn-string-manipulation-by-building-a-cipher/6551eebe6cbb2e6cadf9b468.md @@ -15,7 +15,7 @@ string_2 = 'I am also a string' string_3 = 'This is not valid" ``` -Delete your `number` variable and its value. Then, declare another variable called `text` and assign the string `Hello World` to this variable. +Delete your `number` variable and its value. Then, declare another variable called `text` and assign the string `'Hello World'` to this variable. # --hints-- @@ -32,7 +32,7 @@ You should declare a variable called `text`. Pay attention to place the variable assert.match(code, /^text\s*=/m) ``` -You should assign the string `Hello World` to your `text` variable. Remember to use either single or double quotes to enclose the string and pay attention to the letter case. +You should assign the string `'Hello World'` to your `text` variable. Remember to use either single or double quotes to enclose the string and pay attention to the letter case. ```js assert.match(code, /^text\s*=\s*("|')Hello World\1\s*(#.*)?$/m) diff --git a/curriculum/challenges/english/07-scientific-computing-with-python/learn-string-manipulation-by-building-a-cipher/6551ef504d91936d2d4e54f8.md b/curriculum/challenges/english/07-scientific-computing-with-python/learn-string-manipulation-by-building-a-cipher/6551ef504d91936d2d4e54f8.md index d40877ed6af..2b65b4b4212 100644 --- a/curriculum/challenges/english/07-scientific-computing-with-python/learn-string-manipulation-by-building-a-cipher/6551ef504d91936d2d4e54f8.md +++ b/curriculum/challenges/english/07-scientific-computing-with-python/learn-string-manipulation-by-building-a-cipher/6551ef504d91936d2d4e54f8.md @@ -14,7 +14,7 @@ greet = 'Hello!' print(greet) ``` -The code in the example above would print the string `Hello!`, which is the value of the variable `greet` passed to `print()` as the argument. +The code in the example above would print the string `'Hello!'`, which is the value of the variable `greet` passed to `print()` as the argument. Print your `text` variable to the screen by passing the `text` variable as the argument to the `print()` function. diff --git a/curriculum/challenges/english/07-scientific-computing-with-python/learn-string-manipulation-by-building-a-cipher/6551f3bfed58796ebb1268dc.md b/curriculum/challenges/english/07-scientific-computing-with-python/learn-string-manipulation-by-building-a-cipher/6551f3bfed58796ebb1268dc.md index 86104aff4f6..e55d6fbfb37 100644 --- a/curriculum/challenges/english/07-scientific-computing-with-python/learn-string-manipulation-by-building-a-cipher/6551f3bfed58796ebb1268dc.md +++ b/curriculum/challenges/english/07-scientific-computing-with-python/learn-string-manipulation-by-building-a-cipher/6551f3bfed58796ebb1268dc.md @@ -7,7 +7,7 @@ dashedName: step-5 # --description-- -Each string character can be referenced by a numerical index. The index count starts at zero. So the first character of a string has an index of `0`. For example, in the string `Hello World`, `H` is at index `0`, `e` is at index `1`, and so on. +Each string character can be referenced by a numerical index. The index count starts at zero. So the first character of a string has an index of `0`. For example, in the string `'Hello World'`, `'H'` is at index `0`, `'e'` is at index `1`, and so on. Each character of a string can be accessed by using bracket notation. You need to write the variable name followed by square brackets and add the index of the character between the brackets: diff --git a/curriculum/challenges/english/07-scientific-computing-with-python/learn-string-manipulation-by-building-a-cipher/6551f6f9ec6db270eb83f3db.md b/curriculum/challenges/english/07-scientific-computing-with-python/learn-string-manipulation-by-building-a-cipher/6551f6f9ec6db270eb83f3db.md index 5d0ae1dd2fa..3103cb653bf 100644 --- a/curriculum/challenges/english/07-scientific-computing-with-python/learn-string-manipulation-by-building-a-cipher/6551f6f9ec6db270eb83f3db.md +++ b/curriculum/challenges/english/07-scientific-computing-with-python/learn-string-manipulation-by-building-a-cipher/6551f6f9ec6db270eb83f3db.md @@ -7,7 +7,7 @@ dashedName: step-8 # --description-- -You can see `11` printed on the terminal because `Hello World` contains 11 characters. +You can see `11` printed on the terminal because `'Hello World'` contains 11 characters. Another useful built-in function is `type()`, which returns the data type of a variable. Modify your `print()` call to print the data type of `text`. diff --git a/curriculum/challenges/english/07-scientific-computing-with-python/learn-string-manipulation-by-building-a-cipher/6551fe3b1df7c9740f13f270.md b/curriculum/challenges/english/07-scientific-computing-with-python/learn-string-manipulation-by-building-a-cipher/6551fe3b1df7c9740f13f270.md index cedb112a823..074c15b2e19 100644 --- a/curriculum/challenges/english/07-scientific-computing-with-python/learn-string-manipulation-by-building-a-cipher/6551fe3b1df7c9740f13f270.md +++ b/curriculum/challenges/english/07-scientific-computing-with-python/learn-string-manipulation-by-building-a-cipher/6551fe3b1df7c9740f13f270.md @@ -14,7 +14,7 @@ Key aspects of variable naming in Python are: - Variable names are case sensitive, i.e. `my_var` is different from `my_Var` and `MY_VAR`. - Finally, it is a common convention to write variable names using `snake_case`, where each space is replaced by an underscore character and the words are written in lowercase letters. -Remove both calls to `print()` and declare another variable called `alphabet`. Assign the string `abcdefghijklmnopqrstuvwxyz` to this variable. +Remove both calls to `print()` and declare another variable called `alphabet`. Assign the string `'abcdefghijklmnopqrstuvwxyz'` to this variable. # --hints-- @@ -38,7 +38,7 @@ You should declare a variable called `alphabet`. Pay attention to place the vari assert.match(code, /^alphabet\s*=/m) ``` -You should assign the string `abcdefghijklmnopqrstuvwxyz` to your `alphabet` variable. Remember to use either single or double quotes to enclose the string. +You should assign the string `'abcdefghijklmnopqrstuvwxyz'` to your `alphabet` variable. Remember to use either single or double quotes to enclose the string. ```js assert.match(code, /^alphabet\s*=\s*("|')abcdefghijklmnopqrstuvwxyz\1\s*(#.*)?$/m) diff --git a/curriculum/challenges/english/07-scientific-computing-with-python/learn-string-manipulation-by-building-a-cipher/6552008c0d9d9075cbec9772.md b/curriculum/challenges/english/07-scientific-computing-with-python/learn-string-manipulation-by-building-a-cipher/6552008c0d9d9075cbec9772.md index ef8d07c0640..5c272b6d6f1 100644 --- a/curriculum/challenges/english/07-scientific-computing-with-python/learn-string-manipulation-by-building-a-cipher/6552008c0d9d9075cbec9772.md +++ b/curriculum/challenges/english/07-scientific-computing-with-python/learn-string-manipulation-by-building-a-cipher/6552008c0d9d9075cbec9772.md @@ -15,7 +15,7 @@ Start by finding the position of the first letter in the string. One way is to c text.find('W') ``` -Above, uppercase `W` is the character you want to locate inside the string stored in the `text` variable. The method will return `6`, which is the index of the `W` character inside the string stored in the `text` variable. +Above, uppercase `'W'` is the character you want to locate inside the string stored in the `text` variable. The method will return `6`, which is the index of the `'W'` character inside the string stored in the `text` variable. At the end of your code, call `.find()` on your `alphabet` string and pass `text[0]` to the method. Note that a method is just a function that belongs to an object (you will learn more about that in another project). diff --git a/curriculum/challenges/english/07-scientific-computing-with-python/learn-string-manipulation-by-building-a-cipher/655209a4a27dd37873c4cac3.md b/curriculum/challenges/english/07-scientific-computing-with-python/learn-string-manipulation-by-building-a-cipher/655209a4a27dd37873c4cac3.md index 34166fe3da4..83feddb9318 100644 --- a/curriculum/challenges/english/07-scientific-computing-with-python/learn-string-manipulation-by-building-a-cipher/655209a4a27dd37873c4cac3.md +++ b/curriculum/challenges/english/07-scientific-computing-with-python/learn-string-manipulation-by-building-a-cipher/655209a4a27dd37873c4cac3.md @@ -7,7 +7,7 @@ dashedName: step-16 # --description-- -`.find()` returns the index of the matching character inside the string. If the character is not found, it returns `-1`. As you can see, the first character in `text`, uppercase `H`, is not found, since `alphabet` contains only lowercase letters. +`.find()` returns the index of the matching character inside the string. If the character is not found, it returns `-1`. As you can see, the first character in `text`, uppercase `'H'`, is not found, since `alphabet` contains only lowercase letters. You can transform a string into its lowercase equivalent with the `.lower()` method. Add another `print()` call to print `text.lower()` and see the output. diff --git a/curriculum/challenges/english/07-scientific-computing-with-python/learn-string-manipulation-by-building-a-cipher/65520f8282faf57a0db4f7fe.md b/curriculum/challenges/english/07-scientific-computing-with-python/learn-string-manipulation-by-building-a-cipher/65520f8282faf57a0db4f7fe.md index 95e2567fa84..e4c0036ebff 100644 --- a/curriculum/challenges/english/07-scientific-computing-with-python/learn-string-manipulation-by-building-a-cipher/65520f8282faf57a0db4f7fe.md +++ b/curriculum/challenges/english/07-scientific-computing-with-python/learn-string-manipulation-by-building-a-cipher/65520f8282faf57a0db4f7fe.md @@ -7,7 +7,7 @@ dashedName: step-20 # --description-- -As you can see from the output, `h` is at index `7` in the `alphabet` string. Now you need to find the letter at index `7` plus the value of `shift`. For that, you can use the addition operator, `+`, in the same way you would use it for a mathematical addition. +As you can see from the output, `'h'` is at index `7` in the `alphabet` string. Now you need to find the letter at index `7` plus the value of `shift`. For that, you can use the addition operator, `+`, in the same way you would use it for a mathematical addition. Modify your `shifted` variable so that it stores the value of `alphabet` at index `index + shift`. diff --git a/curriculum/challenges/english/07-scientific-computing-with-python/learn-string-manipulation-by-building-a-cipher/655261b2e1f2c197093f3993.md b/curriculum/challenges/english/07-scientific-computing-with-python/learn-string-manipulation-by-building-a-cipher/655261b2e1f2c197093f3993.md index b7051de41c3..bdf47ed7c6f 100644 --- a/curriculum/challenges/english/07-scientific-computing-with-python/learn-string-manipulation-by-building-a-cipher/655261b2e1f2c197093f3993.md +++ b/curriculum/challenges/english/07-scientific-computing-with-python/learn-string-manipulation-by-building-a-cipher/655261b2e1f2c197093f3993.md @@ -7,7 +7,7 @@ dashedName: step-42 # --description-- -Currently, spaces get encrypted as `c`. To maintain the original spacing in the plain message, you'll require a conditional `if` statement. This is composed of the `if` keyword, a condition, and a colon `:`. +Currently, spaces get encrypted as `'c'`. To maintain the original spacing in the plain message, you'll require a conditional `if` statement. This is composed of the `if` keyword, a condition, and a colon `:`. ```py if x != 0: @@ -16,7 +16,7 @@ if x != 0: In the example above, the condition of the `if` statement is `x != 0`. The code `print(x)`, inside the `if` statement body, runs only when the condition evaluates to `True` (in this example, meaning that `x` is different from zero). -At the top of your for loop, replace `print(char == ' ')` with an `if` statement. The condition of this `if` statement should evaluate to `True` if `char` is an empty space and `False` otherwise. Inside the `if` body, print the string `space!`. Remember to indent this line. +At the top of your for loop, replace `print(char == ' ')` with an `if` statement. The condition of this `if` statement should evaluate to `True` if `char` is an empty space and `False` otherwise. Inside the `if` body, print the string `'space!'`. Remember to indent this line. # --hints-- @@ -36,7 +36,7 @@ const {block_body} = __helpers.python.getBlock(commentless_code, /for\s+char\s+i assert(block_body.match(/if\s+char\s*==\s*("|')\s\1\s*:/)); ``` -You should print the string `space!` inside your new `if` statement. +You should print the string `'space!'` inside your new `if` statement. ```js const commentless_code = __helpers.python.removeComments(code); diff --git a/curriculum/challenges/english/07-scientific-computing-with-python/learn-string-manipulation-by-building-a-cipher/6553980e0527fa115c705646.md b/curriculum/challenges/english/07-scientific-computing-with-python/learn-string-manipulation-by-building-a-cipher/6553980e0527fa115c705646.md index 69191130521..f3fc108e506 100644 --- a/curriculum/challenges/english/07-scientific-computing-with-python/learn-string-manipulation-by-building-a-cipher/6553980e0527fa115c705646.md +++ b/curriculum/challenges/english/07-scientific-computing-with-python/learn-string-manipulation-by-building-a-cipher/6553980e0527fa115c705646.md @@ -7,7 +7,7 @@ dashedName: step-43 # --description-- -Now, instead of printing `space!`, use the addition assignment operator to add the space (currently stored in `char`) to the current value of `encrypted_text`. +Now, instead of printing `'space!'`, use the addition assignment operator to add the space (currently stored in `char`) to the current value of `encrypted_text`. # --hints-- diff --git a/curriculum/challenges/english/07-scientific-computing-with-python/learn-string-manipulation-by-building-a-cipher/6553a755879b131a445e664c.md b/curriculum/challenges/english/07-scientific-computing-with-python/learn-string-manipulation-by-building-a-cipher/6553a755879b131a445e664c.md index dfc91239b0e..f6ea23b4325 100644 --- a/curriculum/challenges/english/07-scientific-computing-with-python/learn-string-manipulation-by-building-a-cipher/6553a755879b131a445e664c.md +++ b/curriculum/challenges/english/07-scientific-computing-with-python/learn-string-manipulation-by-building-a-cipher/6553a755879b131a445e664c.md @@ -7,7 +7,7 @@ dashedName: step-45 # --description-- -Try to assign the string `Hello Zaira` to your `text` variable and see what happens in the console. +Try to assign the string `'Hello Zaira'` to your `text` variable and see what happens in the console. # --hints-- @@ -17,7 +17,7 @@ You should have a `text` variable. assert.match(code, /^text\s*=/m) ``` -You should assign the string `Hello Zaira` to your `text` variable. +You should assign the string `'Hello Zaira'` to your `text` variable. ```js assert.match(code, /^text\s*=\s*("|')Hello\sZaira\1/m) diff --git a/curriculum/challenges/english/07-scientific-computing-with-python/learn-string-manipulation-by-building-a-cipher/6554930320d70414e7b6acc6.md b/curriculum/challenges/english/07-scientific-computing-with-python/learn-string-manipulation-by-building-a-cipher/6554930320d70414e7b6acc6.md index 5629c8d00fb..b5f4088d3b7 100644 --- a/curriculum/challenges/english/07-scientific-computing-with-python/learn-string-manipulation-by-building-a-cipher/6554930320d70414e7b6acc6.md +++ b/curriculum/challenges/english/07-scientific-computing-with-python/learn-string-manipulation-by-building-a-cipher/6554930320d70414e7b6acc6.md @@ -7,7 +7,7 @@ dashedName: step-58 # --description-- -Delete your `shift` variable. Then, declare a new variable called `custom_key` and assign the value of the string `python` to this variable. +Delete your `shift` variable. Then, declare a new variable called `custom_key` and assign the value of the string `'python'` to this variable. # --hints-- @@ -23,7 +23,7 @@ You should declare a variable called `custom_key`. ({ test: () => assert(__userGlobals.has("custom_key")) }) ``` -You should assign the string `python` to your `custom_key` variable. +You should assign the string `'python'` to your `custom_key` variable. ```js ({ test: () => assert.equal(__userGlobals.get("custom_key"), "python") }) diff --git a/curriculum/challenges/english/07-scientific-computing-with-python/learn-string-manipulation-by-building-a-cipher/65551a628bcb7e121e32d04b.md b/curriculum/challenges/english/07-scientific-computing-with-python/learn-string-manipulation-by-building-a-cipher/65551a628bcb7e121e32d04b.md index 521f1f961d3..e2ec9d01611 100644 --- a/curriculum/challenges/english/07-scientific-computing-with-python/learn-string-manipulation-by-building-a-cipher/65551a628bcb7e121e32d04b.md +++ b/curriculum/challenges/english/07-scientific-computing-with-python/learn-string-manipulation-by-building-a-cipher/65551a628bcb7e121e32d04b.md @@ -19,7 +19,7 @@ You should have a `text` variable. ({ test: () => assert(__userGlobals.has("text")) }) ``` -Your `text` variable should be equal to the string `Hello Zaira!`. +Your `text` variable should be equal to the string `'Hello Zaira!'`. ```js ({ test: () => assert.equal(__userGlobals.get("text"), "Hello Zaira!") }) diff --git a/curriculum/challenges/english/07-scientific-computing-with-python/learn-string-manipulation-by-building-a-cipher/65553159615a8123b190ee43.md b/curriculum/challenges/english/07-scientific-computing-with-python/learn-string-manipulation-by-building-a-cipher/65553159615a8123b190ee43.md index e7e001fd7b2..cee38557012 100644 --- a/curriculum/challenges/english/07-scientific-computing-with-python/learn-string-manipulation-by-building-a-cipher/65553159615a8123b190ee43.md +++ b/curriculum/challenges/english/07-scientific-computing-with-python/learn-string-manipulation-by-building-a-cipher/65553159615a8123b190ee43.md @@ -9,7 +9,7 @@ dashedName: step-86 It works! Now, you are going to start with an encrypted message to be decrypted. -Change the value of `text` to the string `mrttaqrhknsw ih puggrur`. +Change the value of `text` to the string `'mrttaqrhknsw ih puggrur'`. # --hints-- @@ -19,7 +19,7 @@ You should still have a `text` variable. ({ test: () => assert(__userGlobals.has("text")) }) ``` -Your `text` variable should have the value of `mrttaqrhknsw ih puggrur`. +Your `text` variable should have the value of `'mrttaqrhknsw ih puggrur'`. ```js ({ test: () => assert.equal(__userGlobals.get("text"), "mrttaqrhknsw ih puggrur") }) diff --git a/curriculum/challenges/english/07-scientific-computing-with-python/learn-string-manipulation-by-building-a-cipher/6555db4a7b788e15795674e5.md b/curriculum/challenges/english/07-scientific-computing-with-python/learn-string-manipulation-by-building-a-cipher/6555db4a7b788e15795674e5.md index 43650a129a7..fe2c23a64ff 100644 --- a/curriculum/challenges/english/07-scientific-computing-with-python/learn-string-manipulation-by-building-a-cipher/6555db4a7b788e15795674e5.md +++ b/curriculum/challenges/english/07-scientific-computing-with-python/learn-string-manipulation-by-building-a-cipher/6555db4a7b788e15795674e5.md @@ -9,7 +9,7 @@ dashedName: step-88 Two or more strings can be concatenated by using the `+` operator. For example: `'Hello' + ' there!'` results in `'Hello there!`. -Call the `print()` function and use the `+` operator to concatenate the `text` variable to the string `Encrypted text: `. Pay attention to the spacing. +Call the `print()` function and use the `+` operator to concatenate the `text` variable to the string `'Encrypted text: '`. Pay attention to the spacing. # --hints-- diff --git a/curriculum/challenges/english/07-scientific-computing-with-python/learn-string-manipulation-by-building-a-cipher/6555df0c81300b175308557d.md b/curriculum/challenges/english/07-scientific-computing-with-python/learn-string-manipulation-by-building-a-cipher/6555df0c81300b175308557d.md index 68b96128144..95ea421f7cb 100644 --- a/curriculum/challenges/english/07-scientific-computing-with-python/learn-string-manipulation-by-building-a-cipher/6555df0c81300b175308557d.md +++ b/curriculum/challenges/english/07-scientific-computing-with-python/learn-string-manipulation-by-building-a-cipher/6555df0c81300b175308557d.md @@ -7,11 +7,11 @@ dashedName: step-89 # --description-- -Below the `print()` call you just added, add another `print()` call to print `Key: python` by concatenating the string `Key: ` and the value of the `custom_key` variable. +Below the `print()` call you just added, add another `print()` call to print `Key: python` by concatenating the string `'Key: '` and the value of the `custom_key` variable. # --hints-- -You should have a `print()` call that prints `Key: python` by concatenating the string `Key: ` and the value of the `custom_key` variable. +You should have a `print()` call that prints `Key: python` by concatenating the string `'Key: '` and the value of the `custom_key` variable. ```js const commentless_code = __helpers.python.removeComments(code); diff --git a/curriculum/challenges/english/07-scientific-computing-with-python/learn-string-manipulation-by-building-a-cipher/6555e5991af57d1ae0e35f0a.md b/curriculum/challenges/english/07-scientific-computing-with-python/learn-string-manipulation-by-building-a-cipher/6555e5991af57d1ae0e35f0a.md index 23af806c5ce..7b8271ab5ca 100644 --- a/curriculum/challenges/english/07-scientific-computing-with-python/learn-string-manipulation-by-building-a-cipher/6555e5991af57d1ae0e35f0a.md +++ b/curriculum/challenges/english/07-scientific-computing-with-python/learn-string-manipulation-by-building-a-cipher/6555e5991af57d1ae0e35f0a.md @@ -7,7 +7,7 @@ dashedName: step-95 # --description-- -Wait a minute! You cannot decrypt anything with the wrong key. Try with `happycoding`. +Wait a minute! You cannot decrypt anything with the wrong key. Try with `'happycoding'`. With that, your cipher project is complete. @@ -19,7 +19,7 @@ You should still have a `custom_key` variable. ({ test: () => assert(__userGlobals.has("custom_key")) }) ``` -You should modify the `custom_key` value into `happycoding`. +You should modify the `custom_key` value into `'happycoding'`. ```js ({ test: () => assert.equal(__userGlobals.get("custom_key"), "happycoding") }) diff --git a/curriculum/challenges/english/07-scientific-computing-with-python/learn-string-manipulation-by-building-a-cipher/65688a50e6c998a21d8e41d3.md b/curriculum/challenges/english/07-scientific-computing-with-python/learn-string-manipulation-by-building-a-cipher/65688a50e6c998a21d8e41d3.md index b2203350e08..97fee73da43 100644 --- a/curriculum/challenges/english/07-scientific-computing-with-python/learn-string-manipulation-by-building-a-cipher/65688a50e6c998a21d8e41d3.md +++ b/curriculum/challenges/english/07-scientific-computing-with-python/learn-string-manipulation-by-building-a-cipher/65688a50e6c998a21d8e41d3.md @@ -7,7 +7,7 @@ dashedName: step-31 # --description-- -Strings are immutable, which means they cannot be changed once created. For example, you might think that the following code changes the value of `my_string` into the string `train`, but this is not valid: +Strings are immutable, which means they cannot be changed once created. For example, you might think that the following code changes the value of `my_string` into the string `'train'`, but this is not valid: ```py my_string = 'brain' diff --git a/curriculum/challenges/english/07-scientific-computing-with-python/learn-string-manipulation-by-building-a-cipher/65688b5a1655a7a6caede847.md b/curriculum/challenges/english/07-scientific-computing-with-python/learn-string-manipulation-by-building-a-cipher/65688b5a1655a7a6caede847.md index 39784236282..e2b04ef618e 100644 --- a/curriculum/challenges/english/07-scientific-computing-with-python/learn-string-manipulation-by-building-a-cipher/65688b5a1655a7a6caede847.md +++ b/curriculum/challenges/english/07-scientific-computing-with-python/learn-string-manipulation-by-building-a-cipher/65688b5a1655a7a6caede847.md @@ -14,7 +14,7 @@ message = 'Hello World' message = 'Hello there!' ``` -Delete the `text[0]` line and reassign `text` the string `Albatross`. +Delete the `text[0]` line and reassign `text` the string `'Albatross'`. # --hints-- @@ -25,7 +25,7 @@ const commentless_code = __helpers.python.removeComments(code); assert.isFalse( /text\s*\[\s*0\s*\]\s*\=\s*("|')\w\1/.test(commentless_code)); ``` -You should reassign `text` the string `Albatross`. Do not modify `text = 'Hello World'`. +You should reassign `text` the string `'Albatross'`. Do not modify `text = 'Hello World'`. ```js ({test: () => { diff --git a/curriculum/challenges/english/07-scientific-computing-with-python/learn-string-manipulation-by-building-a-cipher/6568b7a40c7ba0ccbc4b4425.md b/curriculum/challenges/english/07-scientific-computing-with-python/learn-string-manipulation-by-building-a-cipher/6568b7a40c7ba0ccbc4b4425.md index 076a71f8786..6b04513e34d 100644 --- a/curriculum/challenges/english/07-scientific-computing-with-python/learn-string-manipulation-by-building-a-cipher/6568b7a40c7ba0ccbc4b4425.md +++ b/curriculum/challenges/english/07-scientific-computing-with-python/learn-string-manipulation-by-building-a-cipher/6568b7a40c7ba0ccbc4b4425.md @@ -20,7 +20,7 @@ const commentless_code = __helpers.python.removeComments(code); assert.isFalse( /text\s*=\s*("|')Albatross\1/.test(commentless_code)) ``` -You should still have a `text` variable with the value `Hello World`. +You should still have a `text` variable with the value `'Hello World'`. ```js ({test: () => {