I passed the others except step 6 and 14, I don't know what to do anymore

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

    settings_dict[key] = value
    return f"Setting '{key}' added with value '{value}' successfully!"

test_settings = {
    "theme":"dark",
    "timeout": 30,
    "verbose":True
}

def update_setting(settings_dict, t):
    key, value = t
    key = key.lower()
    value = value.lower()
    settings_dict[key] = value
    return f"Setting '{key}' updated to '{value}' successfully!"
    if key not in settings_dict:
        return f"Setting '{key}' does not exist! Cannot update a non-existing setting."

def delete_setting(settings_dict, setting_tuple):
    key = setting_tuple.lower()
    if key in settings_dict:
        settings_dict.pop(key)
        return f"Setting '{key}' deleted successfully!"
    else:
        return "Setting not found!"

def view_settings(setting):
    if setting == {}:
        return "No settings available."
    result ="Current User Settings:\n"
    for key, value in setting.items():
        result += f"{str(key).capitalize()}: {value}\n"
    return result

view_settings(test_settings)

can you please share a link to this challenge?

Hi @josephejiga,

settings_dict[key] = value
return f"Setting '{key}' updated to '{value}' successfully!"

Are you checking to see if the key exists in the dictionary parameter before updating it and returning a message? Will your code ever get to the place where it checks to see if the key is not in the dictionary?

Make sure the message you return matches the instructions, including punctuation.

Happy coding

In the future, if you have a question about a specific challenge as it relates to your written code for that challenge and need some help, click the Help button located on the challenge.

The Help button will create a new topic with all code you have written and include a link to the challenge also. You will still be able to ask any questions in the post before submitting it to the forum.

Thank you.