mirror of
https://github.com/freeCodeCamp/freeCodeCamp.git
synced 2026-04-30 16:01:14 -04:00
chroe(curriculum): remove pyodide from cipher project (#54755)
This commit is contained in:
@@ -51,7 +51,7 @@ shift = 3
|
||||
${replacement}
|
||||
caesar()
|
||||
`
|
||||
const out = __pyodide.runPython(py_code, {});
|
||||
const out = runPython(py_code, {});
|
||||
assert.equal(out, "khoor cdlud");
|
||||
}
|
||||
})
|
||||
|
||||
@@ -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))
|
||||
|
||||
@@ -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)
|
||||
|
||||
@@ -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)
|
||||
|
||||
@@ -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))
|
||||
|
||||
Reference in New Issue
Block a user