Week 3: Update parameters (exercise 7)

I think that this code is right in according to instructions but It is showing an assertion error. seen below the pic:

  • 1 test is passed and
    -the rest of the tests are not passed
    seen below the screenshot:

<< code removed >>

Hi @dragon_learner_72 , welcome to discourse and thanks for your question! Normally the policy is not to post full solutions, so I have removed the code snipit for you.

Have a careful look at how db2 is calculated, that might explain the error (yes, I also only spotted it as the assertion error is on b2, took me a while to see),

Hope this helps solving the assertion error.