Error in Assignment 3, C2W1

Dear Tutor,

I am trying to resolve the error in the Assignment 3, Course 2 week 1,
I think everything is correct but the tests are not getting clear, could you please help.
Please point out anything which I might be missing,

ref below screenshots of the code,

{moderator edit - solution code removed}

You have a “copy/paste” error in the line that computes theta_minus[i]. Please note that in general we’re not supposed to just post our code and say “please fix it for me”.