Exercise 4 Week 2

I am repeatedly getting a weird error , though can’t find any particular issues in my answer.

Even the error is not getting displayed.

Please help

This is a common problem. The assertion is checking that the type of your b value is float in python. But that fails. That is because 0 is an integer in python. So how could you convert that into a float? Maybe adding a decimal point?

If you are not used to dealing with the assert statement in python, it is a standard debugging technique. You use it to check some condition that should be true. If the condition turns out not to be true, then it throws an exception. That is what has happened here. The next step is to examine the condition in the assertion: what does it mean and why is it not satisfied? That’s what you need to solve.

Thank You sir , it worked