Exercise 5 - propagate_assertaion error

Hello guys did my code there, im getting that error. anyone knows where im missing it

{moderator edit - solution code removed}

db should be a float. Even if db is an array with a single element, that’s not the same as returning a float.

Right! The assertion is telling you that the type of your db value is wrong. So the first question to answer is “What type is it?” Add this print statement to your function:

print(type(db))

What does it show? My bet is that Balaji’s hint is the correct one: your db will be a numpy array. So now you have to figure out how that happened.