Course 1 : week 2 , Assignment 1 , Exercise 4 Assertion error

How can i solve this assertion error. I can’t understand this error. There is no issue in code but this error is always there.

That assertion is telling you that there is something wrong with your code: it is checking that the b is a floating point value and that check fails. So you need to figure out how to express zero as a floating point value in python. Note that in python 0 and 0. are not the same thing. The first is an integer and the second is a floating point value.

1 Like