diff --git a/curriculum/challenges/english/07-scientific-computing-with-python/learn-data-structures-by-building-the-merge-sort-algorithm/6564a9fe51964c229d5b7f4c.md b/curriculum/challenges/english/07-scientific-computing-with-python/learn-data-structures-by-building-the-merge-sort-algorithm/6564a9fe51964c229d5b7f4c.md index 45e506b1225..ed9428a0289 100644 --- a/curriculum/challenges/english/07-scientific-computing-with-python/learn-data-structures-by-building-the-merge-sort-algorithm/6564a9fe51964c229d5b7f4c.md +++ b/curriculum/challenges/english/07-scientific-computing-with-python/learn-data-structures-by-building-the-merge-sort-algorithm/6564a9fe51964c229d5b7f4c.md @@ -16,7 +16,7 @@ Your `merge_sort` function should take a single parameter: `array`. ```js ({ test: () => assert(runPython(` import inspect - str(inspect.signature(__locals.get('merge_sort'))) == '(array)' + str(inspect.signature(merge_sort)) == '(array)' `)) }) ``` 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 c7d86075da5..3e8ee5fed78 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 @@ -24,7 +24,7 @@ You should add `direction` as the third parameter of your function. ```js ({ test: () => assert(runPython(` import inspect - f = __locals.get("vigenere") + f = vigenere sig = str(inspect.signature(f)) sig == '(message, key, direction)' `)) 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 f6605b85d00..21e50554b13 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 @@ -24,7 +24,7 @@ You should declare a new function called `encrypt`. Remember to use the `pass` k ```js ({ test: () => assert(runPython(` import inspect - f = __locals.get("encrypt") + f = encrypt inspect.isfunction(f) `)) }) @@ -35,7 +35,7 @@ Your `encrypt` function should take `message` and `key` as the parameters. The o ```js ({ test: () => assert(runPython(` import inspect - f = __locals.get("encrypt") + f = encrypt sig = inspect.signature(f) str(sig) == "(message, key)" `)) 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 6b4c6bd9628..56af470035e 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 @@ -16,7 +16,7 @@ You should define a new function called `decrypt`. ```js ({ test: () => assert(runPython(` import inspect - f = __locals.get("decrypt") + f = decrypt inspect.isfunction(f) `)) }) @@ -27,7 +27,7 @@ Your `decrypt` function should take `message` and `key` as the parameters. ```js ({ test: () => assert(runPython(` import inspect - f = __locals.get("decrypt") + f = decrypt sig = inspect.signature(f) str(sig) == "(message, key)" `)) 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 b9d6410e4c0..8e1f465b5ee 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 @@ -23,7 +23,7 @@ The `direction` parameter of your `vigenere` function should have a default valu ```js ({ test: () => assert(runPython(` import inspect - f = __locals.get("vigenere") + f = vigenere sig = str(inspect.signature(f)) sig == '(message, key, direction=1)' `)) diff --git a/curriculum/challenges/english/20-upcoming-python/learn-python-by-building-a-blackjack-game/64b163c20e59cbd4a64940b0.md b/curriculum/challenges/english/20-upcoming-python/learn-python-by-building-a-blackjack-game/64b163c20e59cbd4a64940b0.md index 020d23938c1..c9530607b95 100644 --- a/curriculum/challenges/english/20-upcoming-python/learn-python-by-building-a-blackjack-game/64b163c20e59cbd4a64940b0.md +++ b/curriculum/challenges/english/20-upcoming-python/learn-python-by-building-a-blackjack-game/64b163c20e59cbd4a64940b0.md @@ -23,15 +23,7 @@ Test value of `__name__` ```js ({ - test: () => assert(__pyodide.runPython(`__name__ == '__main__'`)) -}) -``` - -Test __locals and __pyodide - -```js -({ - test: () => assert(__pyodide.runPython(`__locals.get('add')(4,5) == 9`)) + test: () => assert(runPython(`__name__ == '__main__'`)) }) ```