C2_W1_Assignment-Optimizing Functions of One Variable: Cost Minimization

Hi,
I’m on Section 2.3 in the course ”Optimizing Functions of One Variable: Cost Minimization”, I keep getting: TypeError: object of type 'NoneType' has no len() about my codes.

Please help me about that.

Are you just running the tests in the notebook, or are you submitting for a grade?

Usually that means your notebook still has some “None” statements that you need to replace with the correct code.