Build a User Configuration Manager - Build a User Configuration Manager

Tell us what’s happening:

test_settings={‘theme’:‘dark’,‘notification’:‘enabled’,‘volume’:‘high’}

def add_setting(setting,key_value):
key=key_value[0]
key=key.lower()
value=key_value[1]
value=value.lower()
if key in test_settings:
return f"Setting ‘{key}’ already exists! Cannot add a new setting with this name."
else:
test_settings[key]=value
f"Setting ‘{key}’ added with value ‘{value}’ successfully!"

def update_setting(x,y):
pass

def delete_setting(x

Your code so far

test_settings={'theme':'dark','notification':'enabled','volume':'high'}

def add_setting(setting,key_value):
     key=key_value[0]
     key=key.lower()
     value=key_value[1]
     value=value.lower()
     if key in test_settings:
        return f"Setting '{key}' already exists! Cannot add a new setting with this name."
     else:
         test_settings[key]=value
         f"Setting '{key}' added with value '{value}' successfully!"



    

def update_setting(x,y):
    pass

def delete_setting(x,y):  
    pass

def view_settings(x,y):
    pass      
print(add_setting(test_settings,('THEME','dark')))

Your browser information:

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

Challenge Information:

Build a User Configuration Manager - Build a User Configuration Manager

Hi @arti.patel09

Please Tell us what’s happening in your own words.

Learning to describe problems is hard, but it is an important part of learning how to code.

Also, the more you say, the more we can help!

Happy coding