From 81941e13ee1587a67ed0677540915bfc64637381 Mon Sep 17 00:00:00 2001 From: wesleyhmartin Date: Tue, 13 Jan 2026 03:56:14 -0500 Subject: [PATCH] fix(curriculum): clarify variable scope (#64929) Co-authored-by: Dario <105294544+Dario-DC@users.noreply.github.com> --- .../6846ac424529900e7327d326.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/curriculum/challenges/english/blocks/workshop-medical-data-validator/6846ac424529900e7327d326.md b/curriculum/challenges/english/blocks/workshop-medical-data-validator/6846ac424529900e7327d326.md index 8031816689d..65e7cd1dcb2 100644 --- a/curriculum/challenges/english/blocks/workshop-medical-data-validator/6846ac424529900e7327d326.md +++ b/curriculum/challenges/english/blocks/workshop-medical-data-validator/6846ac424529900e7327d326.md @@ -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(`