fix(curriculum): clarify variable scope (#64929)

Co-authored-by: Dario <105294544+Dario-DC@users.noreply.github.com>
This commit is contained in:
wesleyhmartin
2026-01-13 09:56:14 +01:00
committed by GitHub
co-authored by Dario
parent db240a97f2
commit 81941e13ee
@@ -16,11 +16,11 @@ print(integers) # {1, 2, 3, 4, 5}
You're going to use a set to ensure that each dictionary does not contain extra or misspelled keys.
Use the `set()` constructor to create a set from the following list of keys that each dictionary should have: `['patient_id', 'age', 'gender', 'diagnosis', 'medications', 'last_visit_id']`. Assign the set to a variable named `key_set`.
Inside the `validate` function, use the `set()` constructor to create a set from the following list of keys that each dictionary should have: `['patient_id', 'age', 'gender', 'diagnosis', 'medications', 'last_visit_id']`. Assign the set to a variable named `key_set`.
# --hints--
You should have a variable named `key_set`.
You should have a variable named `key_set` inside the `validate` function.
```js
({ test: () => runPython(`