chore(curriculum): quotes around strings in tower of hanoi puzzle (#53569)

This commit is contained in:
Ilenia
2024-02-08 09:29:24 +01:00
committed by GitHub
parent 046f01b711
commit 9499a23aa2
3 changed files with 3 additions and 3 deletions

View File

@@ -7,7 +7,7 @@ dashedName: step-20
# --description--
When the remainder of the move number divided by 3 is equal to 2, the movement is allowed between `A` and `B` (the source and the auxiliary rods).
When the remainder of the move number divided by 3 is equal to 2, the movement is allowed between `'A'` and `'B'` (the source and the auxiliary rods).
Add an `elif` statement for that. Then, print the appropriate string if the condition is met.

View File

@@ -7,7 +7,7 @@ dashedName: step-21
# --description--
Finally, when the move number divided by 3 has no remainder, the movement is allowed between `B` and `C`.
Finally, when the move number divided by 3 has no remainder, the movement is allowed between `'B'` and `'C'`.
Add an `elif` statement for that. Then, print the appropriate string if the condition is met.

View File

@@ -11,7 +11,7 @@ It looks like it's working! But the output is not very readable. Print a new lin
# --hints--
You should pass a string with a new line character (`\n`) as the second argument for your two `print(rods)` calls.
You should pass a string with a new line character (`'\n'`) as the second argument for your two `print(rods)` calls.
```js
({ test: () => assert.match(code, /print\(\s*rods\s*,\s*('|")\\n\1\s*\)(?=.*print\(\s*rods\s*,\s*('|")\\n\2\s*\))/s) })