Build a User configuration manager

Can someone help me what’s wrong with my code

test_settings = {
    'theme': 'light',
    'volume': 'high'
}

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

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

def delete_setting(dictionary, key):
    key = key.lower()
    
    if key not in dictionary:
        return "Setting not found!"
    
    del dictionary[key]
    return f"Setting '{key}' deleted successfully!"

def view_settings(dictionary):
    if not dictionary:
        return "No settings available."
    
    result = ""
    for key, value in dictionary.items():
        result += f"{key.capitalize()}: {value}\n"
    
    return result

print(view_settings(test_settings))

can you share a link to this challenge please?

Oh, there is an example for what view_settings should return:

Current User Settings:
Theme: dark
Notifications: enabled
Volume: high

it looks like you are missing one line in your output

thanks that solved, i haven’t observed that user story