chroe(curriculum): remove pyodide from cipher project (#54755)

This commit is contained in:
Ilenia
2024-05-15 10:04:37 +02:00
committed by GitHub
parent 4b1184672e
commit 244560e18b
5 changed files with 7 additions and 7 deletions

View File

@@ -51,7 +51,7 @@ shift = 3
${replacement}
caesar()
`
const out = __pyodide.runPython(py_code, {});
const out = runPython(py_code, {});
assert.equal(out, "khoor cdlud");
}
})

View File

@@ -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))

View File

@@ -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)

View File

@@ -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)

View File

@@ -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))