diff --git a/curriculum/challenges/english/07-scientific-computing-with-python/learn-lambda-functions-by-building-an-expense-tracker/658212ba98182f3e855e85f9.md b/curriculum/challenges/english/07-scientific-computing-with-python/learn-lambda-functions-by-building-an-expense-tracker/658212ba98182f3e855e85f9.md index 4ad1a0f5ab4..90725056be2 100644 --- a/curriculum/challenges/english/07-scientific-computing-with-python/learn-lambda-functions-by-building-an-expense-tracker/658212ba98182f3e855e85f9.md +++ b/curriculum/challenges/english/07-scientific-computing-with-python/learn-lambda-functions-by-building-an-expense-tracker/658212ba98182f3e855e85f9.md @@ -16,7 +16,7 @@ Start by defining a function named `add_expense` that takes three parameters: `e You should declare a function named `add_expense`. ```js -({ test: () => assert(__pyodide.runPython(` +({ test: () => assert(runPython(` import inspect inspect.isfunction(add_expense) `)) @@ -26,7 +26,7 @@ You should declare a function named `add_expense`. Your `add_expense` function should take three parameters: `expenses`, `amount` and `category`. ```js -({ test: () => assert(__pyodide.runPython(` +({ test: () => assert(runPython(` import inspect sig = str(inspect.signature(add_expense)) sig == '(expenses, amount, category)' diff --git a/curriculum/challenges/english/07-scientific-computing-with-python/learn-lambda-functions-by-building-an-expense-tracker/6582267ef39f5047411c1743.md b/curriculum/challenges/english/07-scientific-computing-with-python/learn-lambda-functions-by-building-an-expense-tracker/6582267ef39f5047411c1743.md index d1b44c773f7..3b14ff2cf43 100644 --- a/curriculum/challenges/english/07-scientific-computing-with-python/learn-lambda-functions-by-building-an-expense-tracker/6582267ef39f5047411c1743.md +++ b/curriculum/challenges/english/07-scientific-computing-with-python/learn-lambda-functions-by-building-an-expense-tracker/6582267ef39f5047411c1743.md @@ -16,7 +16,7 @@ Fill the body of your new function with a `pass` statement. You should define a new function named `print_expenses`. ```js -({ test: () => assert(__pyodide.runPython(` +({ test: () => assert(runPython(` import inspect inspect.isfunction(print_expenses) `)) @@ -26,7 +26,7 @@ You should define a new function named `print_expenses`. Your `print_expenses` function should take a single parameter `expenses`. ```js -({ test: () => assert(__pyodide.runPython(` +({ test: () => assert(runPython(` import inspect sig = str(inspect.signature(print_expenses)) sig == '(expenses)' diff --git a/curriculum/challenges/english/07-scientific-computing-with-python/learn-lambda-functions-by-building-an-expense-tracker/65823040bdb32949d4c1a96f.md b/curriculum/challenges/english/07-scientific-computing-with-python/learn-lambda-functions-by-building-an-expense-tracker/65823040bdb32949d4c1a96f.md index 7d4ac5f9d33..3dfe6dd193a 100644 --- a/curriculum/challenges/english/07-scientific-computing-with-python/learn-lambda-functions-by-building-an-expense-tracker/65823040bdb32949d4c1a96f.md +++ b/curriculum/challenges/english/07-scientific-computing-with-python/learn-lambda-functions-by-building-an-expense-tracker/65823040bdb32949d4c1a96f.md @@ -14,7 +14,7 @@ You will need a function to calculate the total amount of expenses. Define a fun You should define a function named `total_expenses`. ```js -({ test: () => assert(__pyodide.runPython(` +({ test: () => assert(runPython(` import inspect inspect.isfunction(total_expenses) `)) @@ -24,7 +24,7 @@ You should define a function named `total_expenses`. Your`total_expenses` function should take a single `expenses` parameter. ```js -({ test: () => assert(__pyodide.runPython(` +({ test: () => assert(runPython(` import inspect sig = str(inspect.signature(total_expenses)) sig == '(expenses)' diff --git a/curriculum/challenges/english/07-scientific-computing-with-python/learn-lambda-functions-by-building-an-expense-tracker/65823e87c9741750a22085a7.md b/curriculum/challenges/english/07-scientific-computing-with-python/learn-lambda-functions-by-building-an-expense-tracker/65823e87c9741750a22085a7.md index dc868ffe2a1..0da2a2b8b69 100644 --- a/curriculum/challenges/english/07-scientific-computing-with-python/learn-lambda-functions-by-building-an-expense-tracker/65823e87c9741750a22085a7.md +++ b/curriculum/challenges/english/07-scientific-computing-with-python/learn-lambda-functions-by-building-an-expense-tracker/65823e87c9741750a22085a7.md @@ -14,7 +14,7 @@ Next, define a function named `filter_expenses_by_category` that takes two param You should define a function named `filter_expenses_by_category`. ```js -({ test: () => assert(__pyodide.runPython(` +({ test: () => assert(runPython(` import inspect inspect.isfunction(filter_expenses_by_category) `)) @@ -24,7 +24,7 @@ You should define a function named `filter_expenses_by_category`. Your `filter_expenses_by_category` function should take `expenses` and `category` as the parameters. ```js -({ test: () => assert(__pyodide.runPython(` +({ test: () => assert(runPython(` import inspect sig = str(inspect.signature(filter_expenses_by_category)) sig == '(expenses, category)' diff --git a/curriculum/challenges/english/07-scientific-computing-with-python/learn-lambda-functions-by-building-an-expense-tracker/65824561f3478e5371a33ae5.md b/curriculum/challenges/english/07-scientific-computing-with-python/learn-lambda-functions-by-building-an-expense-tracker/65824561f3478e5371a33ae5.md index 56667701c65..602e288b104 100644 --- a/curriculum/challenges/english/07-scientific-computing-with-python/learn-lambda-functions-by-building-an-expense-tracker/65824561f3478e5371a33ae5.md +++ b/curriculum/challenges/english/07-scientific-computing-with-python/learn-lambda-functions-by-building-an-expense-tracker/65824561f3478e5371a33ae5.md @@ -16,7 +16,7 @@ Define a function named `main` without parameters. Fill the function body with t You should define a function named `main()` without parameters. ```js -({ test: () => assert(__pyodide.runPython(` +({ test: () => assert(runPython(` import inspect inspect.isfunction(main) `)) @@ -26,7 +26,7 @@ You should define a function named `main()` without parameters. You should move the `expenses` list inside the `main()` function body. ```js -({ test: () => assert(__pyodide.runPython(` +({ test: () => assert(runPython(` import inspect sig = str(inspect.signature(main)) sig == '()'