Build a User Configuration Manager- tests 25 and 27

Hi! I have problems with step 25 and 27 (This is the function i’m having problems with. Help.)

def view_settings(test_settings):
    if test_settings=={}:
        return f"No settings available."
    output='Current User settings:\n'
    for key, value in test_settings.items():
        output+=f"{key.capitalize()}: {value}\n"
    return output
```[https://www.freecodecamp.org/learn/python-v9/lab-user-configuration-manager/build-a-user-configuration-manager](https://www.freecodecamp.org/learn/python-v9/lab-user-configuration-manager/build-a-user-configuration-manager)

Isn’t test_settings supposed to be a global variable just used for testing?

What error messages are you seeing?

Please post a link to the lab.

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 Get Help > Ask for Help button located on the challenge.

The Ask for 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.

1 Like

Also, check that this is correct with attention to capitalization.

1 Like

yes! but it works with any parameter i think. The condition was to use only 1, i could’ve put just settings.
I’m not seeing any errors, i tested this

print(view_settings({'theme': 'dark', 'notifications': 'enabled', 'volume': 'high'}))

and this is shown in the terminal

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

sorry to bother, i did it. i was putting a .strip() at the end cause there was an extra blank line but apparently it wasn’t necessary. Anyways, thank you very much.