Tell us what’s happening:
Error 6 and 7 wont pass even though the terminal printed the required messages. how can i fix this?
Your code so far
test_settings={
'Theme': 'dark',
'Notifications': 'enabled',
'Volume': 'high'
}
settings = [test_settings]
def add_setting(dictionary, key_value):
key, value = key_value
key = key.lower()
value = value.lower()
if key in dictionary:
print(f"Setting '{key}' already exists! Cannot add a new setting with this name.".lower())
return False
else:
dictionary[key] = value
print(f"Setting '{key}' added with value '{value}' successfully!".lower())
return True
add_setting({'theme': 'light'}, ('THEME', 'dark'))
add_setting({'theme': 'light'}, ('volume', 'high'))
Your browser information:
User Agent is: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:148.0) Gecko/20100101 Firefox/148.0
Challenge Information:
Build a User Configuration Manager - Build a User Configuration Manager