The assertion is telling you that your b value has the wrong type. So Balaji is asking you to print what type it actually is. What you will most likely find is that it is an integer. If you just assign the value 0 to b that doesn’t work, because 0 is an integer in python. In python 0 and 0. are not the same thing. The decimal point there makes the second value a float.