Hello, Hope you all are doing good. I am having trouble on my assignment and I don’t know what I did wrong. Can you explain to me the error I made.

Hello @Fetlework_Gubena,

It is important that we google the error message for more explanations to self-learn. For example, this appears in my search results. My suggestion is for you to read more googled results, reproduce the error with any code provided in those results and then fix the error. After you know how the error can occur and be fixed, then examine your code again and the requirement of the exercise.


The error means that the “cost” variable that your compute_cost() function returns is the wrong data type.