Tell us what’s happening:
When I try run the test to see if I’m on the right track it says ‘Your code raised an error before any tests could run. Please fix it and try again’, but there’s no error showing in the terminal. I’ve tried removing it down to the function name and even without any text in there and it still says the same.
Your code so far
def add_setting(settings, tuple_pair):
key, value = tuple_pair
key_lower = str(key).lower()
value_lower = str(value).lower()
if key_lower in settings_dict:
return f"Setting '[key]' already exists! Cannot add a new setting with this name."
else:
return f"Setting '[key]' added with value '[value]' successfully!"
Your browser information:
User Agent is: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/147.0.0.0 Safari/537.36 Edg/147.0.0.0
Challenge Information:
Build a User Configuration Manager - Build a User Configuration Manager