Build a User Configuration Manager - Build a User Configuration Manager

Tell us what’s happening:

So I do not understand why, when I run this script, the error “add_setting should convert the key into lowercase” keeps appearing.
I’ve returned the two values, and both are in lowercase. I also tried to converting them into lowercase separately using variables and assigning them the value “key.lower() and value.lower(),” but my code is not meeting the expectations, even though both values are in lowercase.

Your code so far

def add_setting(settings, tup):
    key, value = [item.lower() for item in tup]

test_settings = {
        "brightness": 80,
        "volume": 57,
        "screen_mode": "dark",
        "theme": "dark"
    } 
 
print(add_setting(test_settings, ("THEME", "Light")))

Your browser information:

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

Challenge Information:

Build a User Configuration Manager - Build a User Configuration Manager

GitHub Link: freeCodeCamp/curriculum/challenges/english/blocks/lab-user-configuration-manager/684aaf9ec670c68d20efd0d0.md at main · freeCodeCamp/freeCodeCamp · GitHub

where have you returned the value?

your function ends here, and then you are not doing anything with key and value

please update settings