From 244560e18b81e1965147b451ae8ee233cb5cb95e Mon Sep 17 00:00:00 2001 From: Ilenia <26656284+ilenia-magoni@users.noreply.github.com> Date: Wed, 15 May 2024 10:04:37 +0200 Subject: [PATCH] chroe(curriculum): remove pyodide from cipher project (#54755) --- .../6553a572f7a65718f1e42e18.md | 2 +- .../6554d25dc5ceaa354307a77e.md | 2 +- .../6555231eac4d9f19bd3d44b5.md | 4 ++-- .../65552a9593755e1fb2f5ab50.md | 4 ++-- .../6555d6e12c95701172b55709.md | 2 +- 5 files changed, 7 insertions(+), 7 deletions(-) diff --git a/curriculum/challenges/english/07-scientific-computing-with-python/learn-string-manipulation-by-building-a-cipher/6553a572f7a65718f1e42e18.md b/curriculum/challenges/english/07-scientific-computing-with-python/learn-string-manipulation-by-building-a-cipher/6553a572f7a65718f1e42e18.md index 63e928779b3..83bee644083 100644 --- a/curriculum/challenges/english/07-scientific-computing-with-python/learn-string-manipulation-by-building-a-cipher/6553a572f7a65718f1e42e18.md +++ b/curriculum/challenges/english/07-scientific-computing-with-python/learn-string-manipulation-by-building-a-cipher/6553a572f7a65718f1e42e18.md @@ -51,7 +51,7 @@ shift = 3 ${replacement} caesar() ` - const out = __pyodide.runPython(py_code, {}); + const out = runPython(py_code, {}); assert.equal(out, "khoor cdlud"); } }) diff --git a/curriculum/challenges/english/07-scientific-computing-with-python/learn-string-manipulation-by-building-a-cipher/6554d25dc5ceaa354307a77e.md b/curriculum/challenges/english/07-scientific-computing-with-python/learn-string-manipulation-by-building-a-cipher/6554d25dc5ceaa354307a77e.md index d5de54e38eb..c7d86075da5 100644 --- a/curriculum/challenges/english/07-scientific-computing-with-python/learn-string-manipulation-by-building-a-cipher/6554d25dc5ceaa354307a77e.md +++ b/curriculum/challenges/english/07-scientific-computing-with-python/learn-string-manipulation-by-building-a-cipher/6554d25dc5ceaa354307a77e.md @@ -22,7 +22,7 @@ You should turn the last two lines in your code into comments. Put a `#` at the You should add `direction` as the third parameter of your function. ```js -({ test: () => assert(__pyodide.runPython(` +({ test: () => assert(runPython(` import inspect f = __locals.get("vigenere") sig = str(inspect.signature(f)) diff --git a/curriculum/challenges/english/07-scientific-computing-with-python/learn-string-manipulation-by-building-a-cipher/6555231eac4d9f19bd3d44b5.md b/curriculum/challenges/english/07-scientific-computing-with-python/learn-string-manipulation-by-building-a-cipher/6555231eac4d9f19bd3d44b5.md index 89555a7e6ac..f6605b85d00 100644 --- a/curriculum/challenges/english/07-scientific-computing-with-python/learn-string-manipulation-by-building-a-cipher/6555231eac4d9f19bd3d44b5.md +++ b/curriculum/challenges/english/07-scientific-computing-with-python/learn-string-manipulation-by-building-a-cipher/6555231eac4d9f19bd3d44b5.md @@ -22,7 +22,7 @@ Calling `vigenere` with `1` to encrypt and `-1` to decrypt is fine but it might You should declare a new function called `encrypt`. Remember to use the `pass` keyword inside the body. ```js -({ test: () => assert(__pyodide.runPython(` +({ test: () => assert(runPython(` import inspect f = __locals.get("encrypt") inspect.isfunction(f) @@ -33,7 +33,7 @@ You should declare a new function called `encrypt`. Remember to use the `pass` k Your `encrypt` function should take `message` and `key` as the parameters. The order matters. ```js -({ test: () => assert(__pyodide.runPython(` +({ test: () => assert(runPython(` import inspect f = __locals.get("encrypt") sig = inspect.signature(f) diff --git a/curriculum/challenges/english/07-scientific-computing-with-python/learn-string-manipulation-by-building-a-cipher/65552a9593755e1fb2f5ab50.md b/curriculum/challenges/english/07-scientific-computing-with-python/learn-string-manipulation-by-building-a-cipher/65552a9593755e1fb2f5ab50.md index cb47263fdfc..6b4c6bd9628 100644 --- a/curriculum/challenges/english/07-scientific-computing-with-python/learn-string-manipulation-by-building-a-cipher/65552a9593755e1fb2f5ab50.md +++ b/curriculum/challenges/english/07-scientific-computing-with-python/learn-string-manipulation-by-building-a-cipher/65552a9593755e1fb2f5ab50.md @@ -14,7 +14,7 @@ Define another function named `decrypt` with the same parameters as `encrypt`. T You should define a new function called `decrypt`. ```js -({ test: () => assert(__pyodide.runPython(` +({ test: () => assert(runPython(` import inspect f = __locals.get("decrypt") inspect.isfunction(f) @@ -25,7 +25,7 @@ You should define a new function called `decrypt`. Your `decrypt` function should take `message` and `key` as the parameters. ```js -({ test: () => assert(__pyodide.runPython(` +({ test: () => assert(runPython(` import inspect f = __locals.get("decrypt") sig = inspect.signature(f) diff --git a/curriculum/challenges/english/07-scientific-computing-with-python/learn-string-manipulation-by-building-a-cipher/6555d6e12c95701172b55709.md b/curriculum/challenges/english/07-scientific-computing-with-python/learn-string-manipulation-by-building-a-cipher/6555d6e12c95701172b55709.md index 3818f571399..b9d6410e4c0 100644 --- a/curriculum/challenges/english/07-scientific-computing-with-python/learn-string-manipulation-by-building-a-cipher/6555d6e12c95701172b55709.md +++ b/curriculum/challenges/english/07-scientific-computing-with-python/learn-string-manipulation-by-building-a-cipher/6555d6e12c95701172b55709.md @@ -21,7 +21,7 @@ Modify the `vigenere` function so that its `direction` parameter has a default v The `direction` parameter of your `vigenere` function should have a default value of `1`. ```js -({ test: () => assert(__pyodide.runPython(` +({ test: () => assert(runPython(` import inspect f = __locals.get("vigenere") sig = str(inspect.signature(f))