Build a User Configuration Manager - Build a User Configuration Manager

Tell us what’s happening:

I’m still on step one but a value error is popping up saying ‘dictionary update sequence element #0 has length 4; 2 is require’ I’m guessing it’s because the function has 2 parameters how do I get it to accept the entire dictionary?

Your code so far

def add_setting (settings,pair):
    key_input=pair[0].lower()
    
    for setting in settings.keys():
        
        if key_input == settings.keys():
            found = True
            exists = key_input
        else:
            found = False
            new_key = key_input

    if found:
        return f"Setting '{exists}' already exists! Cannot add a new setting with this name."
    
    if not found:
        feature=pair[1]
        settings.update({new_key,feature})


test_setting={
    'Current User Settings':'default',
    #'Theme': 'dark',
    #'Notifications': 'enabled',
    #'Volume': 'high',
}

user_input=['Theme','blue']

print(add_setting(test_setting,user_input))

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

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

make sure to review how to use update() and keys()