Week 2 assignment 'b' assertion error occurs

I don’t know why this error occurs :frowning:
What should I modify my code??

Try making ‘b’ just a regular floating point 0.0, not a np.zeros().

The assert says ‘b’ should just be a ‘float’, not a numpy array.

2 Likes

Right. You can see what Tom means by adding this print statement to your code:

print(f"type(b) = {type(b)}")

It will not be “float” the way you wrote the code.

1 Like

thank you guys, I solved it!
But another problem occurs… Can you let me know about them?
I wrote a new question

I have answered on your other thread.