mirror of
https://github.com/freeCodeCamp/freeCodeCamp.git
synced 2026-04-11 07:00:41 -04:00
chore(curriculum): remove pyodide from expense tracker project (#54758)
This commit is contained in:
@@ -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)'
|
||||
|
||||
@@ -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)'
|
||||
|
||||
@@ -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)'
|
||||
|
||||
@@ -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)'
|
||||
|
||||
@@ -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 == '()'
|
||||
|
||||
Reference in New Issue
Block a user