Failing in the chellenges

Tell us what’s happening:
Describe your issue in detail here.

I think my problem is working with strings, but I cant figure it out:( can you give some advice on it please… I also failed the same way on the previous two chaellenges… (arifmetic arranger and time calculator)

Your code so far

Your browser information:

User Agent is: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/96.0.4664.110 Safari/537.36

Challenge: Budget App

Link to the challenge:

The “Your code so far” section is empty for me. Did you not properly include stuff or is there a problem on my side?


Ok now code is there - I’m writing again so you get the notification.

Both errors are actually quite straightforward, look at the Assertion part.
First one: None !=... meaning you are either not returning anything at all or created a None-object and returned that. In your case, the create_spend_chart function is literally empty. I think you named the function different, which ofcourse fails the test because it’s called a specific function and you cannot change the name.

Second '<budget.Category object at 0x7f91e29636d0>' != is the memory-adress of the object and the default output when printing something. To change it, you use the double-under (dunder) method __str__ or __repr__ just like the __init__ method, it’s changing the behavior. Also known as magic-methods, there are a bunch of them, so you better look up how to use them.

1 Like

Thank you very much :blush:, i got it

This topic was automatically closed 182 days after the last reply. New replies are no longer allowed.