Tell us what’s happening:
i did everything to make the key lowercase but i dont know what is the problem can anyone help pls
Your code so far
test_settings={
"brightness": 80,
"volume": 57,
"screen_mode": "dark",
"theme": "dark"
}
def add_setting(setting, key_value):
key=key_value.lower()
value=key_value.lower()
if key in settings:
return f"Setting '{key}' already exists! Cannot add a new setting with this name."
settings[key] = value
return f"Setting '{key}' added to '{value}' successfully!"
Your browser information:
User Agent is: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/147.0.0.0 Safari/537.36
Challenge Information:
Build a User Configuration Manager - Build a User Configuration Manager