Build a User Configuration Manager - Build a User Configuration Manager

Tell us what’s happening:

All the test cases from 6 to 27 failed .please guide me how to pass them .

Your code so far

test_settings={
'theme': 'dark','notifications': 'enabled','volume': 'high'}
def add_setting(dict_set,tup_key_value):
    new_key=tup_key_value[0].lower()
    new_value=tup_key_value[1].lower()
    for key,value in dict_set.items():
        #new_key=key.lower()
        if dict_set[key]==new_key:
            return (f"Setting '{new_key}'already exists!Cannot add a new setting with this name.")
        else:
            new_data={new_key:new_value}
            dict_set.update(new_data)
            return(f"Setting '{new_key}'added with the value '{new_value}'successfully.")
#add_setting(test_settings,("Theme","Dark"))
def delete_settings(dict_set,key):
    new_key= key.lower()
    if(new_key==dict_set[key]):
        dict_set.pop(key)
        return (f"Setting '{new_key}'deleted successfully!")
    else:
        return "Setting not found!"
def view_settings(dict_set):
    if not dict_set:
        return "No settings available."
    else:
        lines=["Current User Settings: \n"]
        for key,value in dict.items():
            lines.append(f"{key.capitalize()}: {value}\n")
        
    

        
        

Your browser information:

User Agent is: Mozilla/5.0 (Linux; Android 10; K) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/150.0.0.0 Mobile 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

Hi @ArtiGautam84,

Try printing the condition on the line above this one. Is that the value you expect?

Check all of your messages to make sure they match exactly to the instructions.

Happy coding