diff --git a/curriculum/challenges/english/07-scientific-computing-with-python/learn-string-manipulation-by-building-a-cipher/6553efd6ada3f42aa2d75448.md b/curriculum/challenges/english/07-scientific-computing-with-python/learn-string-manipulation-by-building-a-cipher/6553efd6ada3f42aa2d75448.md index 400939107ca..3a7beeabc9f 100644 --- a/curriculum/challenges/english/07-scientific-computing-with-python/learn-string-manipulation-by-building-a-cipher/6553efd6ada3f42aa2d75448.md +++ b/curriculum/challenges/english/07-scientific-computing-with-python/learn-string-manipulation-by-building-a-cipher/6553efd6ada3f42aa2d75448.md @@ -18,18 +18,10 @@ Parameters are variables that you can use inside your function. A function can b Modify your function declaration so that it takes two parameters called `message` and `offset`. -After that, you'll see an error appear in the terminal. As a temporary fix, comment out the `caesar()` call. +After that, you'll see an error appear in the terminal. You'll see how to solve it in the next steps. # --hints-- -You should comment out the `caesar()` function call. - -```js -({test: () => assert(runPython( - `not _Node(_code).find_calls('caesar')` -))}) -``` - Your `caesar` function should take `message` and `offset` as the parameters. Remember to separate the parameters with a comma. ```js @@ -45,6 +37,7 @@ text = 'Hello Zaira' shift = 3 --fcc-editable-region-- def caesar(): +--fcc-editable-region-- alphabet = 'abcdefghijklmnopqrstuvwxyz' encrypted_text = '' @@ -59,5 +52,4 @@ def caesar(): print('encrypted text:', encrypted_text) caesar() ---fcc-editable-region-- ``` diff --git a/curriculum/challenges/english/07-scientific-computing-with-python/learn-string-manipulation-by-building-a-cipher/6553f3fc92741c2bf8ded140.md b/curriculum/challenges/english/07-scientific-computing-with-python/learn-string-manipulation-by-building-a-cipher/6553f3fc92741c2bf8ded140.md index ce8202d7e3c..b09b806bd93 100644 --- a/curriculum/challenges/english/07-scientific-computing-with-python/learn-string-manipulation-by-building-a-cipher/6553f3fc92741c2bf8ded140.md +++ b/curriculum/challenges/english/07-scientific-computing-with-python/learn-string-manipulation-by-building-a-cipher/6553f3fc92741c2bf8ded140.md @@ -46,6 +46,6 @@ def caesar(message, offset): print('plain text:', text) print('encrypted text:', encrypted_text) -#caesar() +caesar() --fcc-editable-region-- ``` diff --git a/curriculum/challenges/english/07-scientific-computing-with-python/learn-string-manipulation-by-building-a-cipher/6553f4f66099802c6ae94613.md b/curriculum/challenges/english/07-scientific-computing-with-python/learn-string-manipulation-by-building-a-cipher/6553f4f66099802c6ae94613.md index 9ccbbd59f60..f554f7988f7 100644 --- a/curriculum/challenges/english/07-scientific-computing-with-python/learn-string-manipulation-by-building-a-cipher/6553f4f66099802c6ae94613.md +++ b/curriculum/challenges/english/07-scientific-computing-with-python/learn-string-manipulation-by-building-a-cipher/6553f4f66099802c6ae94613.md @@ -7,7 +7,7 @@ dashedName: step-53 # --description-- -Now, uncomment your `caesar()` call. You'll see that your code raises a `TypeError`, because the `caesar` function is defined with two parameters (`message` and `offset`), therefore it expects to be called with two *arguments*. +Currently, your code raises a `TypeError`, because the `caesar` function is defined with two parameters (`message` and `offset`), therefore it expects to be called with two *arguments*. Calling `caesar()` without the required arguments stops the execution of the code. @@ -47,6 +47,6 @@ def caesar(message, offset): print('plain text:', message) print('encrypted text:', encrypted_text) --fcc-editable-region-- -# caesar() +caesar() --fcc-editable-region-- ```