Budget app works, but there is a none at the end

Tell us what’s happening:

My tests pass in the curriculum (even though it thinks my formatting is wrong within repl.it) but I’m frustrated because I get a “None” at the end of my output every time i run the program.

Your code so far
https://repl.it/@SethAlan/boilerplate-budget-app#budget.py I disabled the tests for now, as it was annoying.

Your browser information:

User Agent is: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_14_6) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/86.0.4240.198 Safari/537.36.

Challenge: Budget App

Link to the challenge:

Keep in mind that function in python always returns something, if there isn’t anything returned explicitly, then the None is returned. The same happens when just bare return is used.

Because in main.py create_spend_chart function is called within print then what function returns is printed - None. Take a closer look at the specification of create_spend_chart function in readme, as that’s not what this function is expected to return.

1 Like