Build a Medical Data Validator - Step 17

Tell us what’s happening:

I’m on step17 of Workshop “build a medical data validator”
Task: 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.

Here’s my code:
key_set = set([‘patient_id’, ‘age’, ‘gender’, ‘diagnosis’, ‘medications’, ‘last_visit_id’])

But it keeps saying "you should have a variable name key_set. And doesn’t let me pass.

Your code so far


# User Editable Region

key_set = set(['patient_id', 'age', 'gender', 'diagnosis', 'medications', 'last_visit_id'])

# User Editable Region

Your browser information:

User Agent is: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/143.0.0.0 Safari/537.36

Challenge Information:

Build a Medical Data Validator - Step 17

Welcome to the forum @hymnsakol

Check out the console.

Happy coding

you need to put it inside the block you are working in, you are missing some indentation