mirror of
https://github.com/freeCodeCamp/freeCodeCamp.git
synced 2026-09-24 23:01:18 +08:00
fix(curriculum): clarify variable scope (#64929)
Co-authored-by: Dario <105294544+Dario-DC@users.noreply.github.com>
This commit is contained in:
+2
-2
@@ -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(`
|
||||
|
||||
Reference in New Issue
Block a user