Tell us what’s happening:
The compiler seem to be having errors. Everytime I use the “Run the Tests” button it will not check off the items I have already done and the error messages in the console are not rendering properly.
Your code so far
def add_setting({'Theme': ['light', 'dark'], 'Notifications': ['enabled', 'disabled'], 'Volume': ['low', 'high']}, ('key', 'value')):
return "Setting '[key]' already exists! Cannot add a new setting with this name."
return "Setting '[key]' does not exist! Cannot update a non-existing setting."
def update_setting({'Theme': ('light', 'dark'), 'Notifications': ('enabled', 'disabled'), 'Volume': ('low', 'high')}, ('key', 'value')):
return "Setting '[key]' updated to '[value]' successfully!"
return "Setting '[key]' does not exist! Cannot update a non-existing setting."
def delete_setting({'Theme': ('light', 'dark'), 'Notifications': ('enabled', 'disabled'), 'Volume': ('low', 'high')}, ('key', 'value')):
return "Setting '[key]' deleted successfully!"
return "Setting not found!"
def view_settings({'Theme': ('light', 'dark'), 'Notifications': ('enabled', 'disabled'), 'Volume': ('low', 'high')}, ('key', 'value')):
return "No settings available."
return "Current User Settings:"
test_settings = {
'Theme': ['light', 'dark'],
'Notifications': ['enabled', 'disabled'],
'Volume': ['low', 'high']
}
Your browser information:
User Agent is: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/144.0.0.0 Safari/537.36
Challenge Information:
Build a User Configuration Manager - Build a User Configuration Manager