Error Wrong output module 1 course 2 in deep learning AI specialization

Regularization lab in module1 course 2 (Improving Deep Neural Networks) error message:
Error Wrong output
1 tests pass
1 tests fail
I am not sure what the wrong output means. It is just 1 line of straightforward code (that you pretty much spell out in the comment) so I am not sure what to debug. These are just adding numbers together and multiplying by another number.

{moderator edit - solution code removed}

Please don’t post your code on the forum. That’s not allowed by the Code of Conduct.

Why exactly are you summing the square of W2 twice?

Note that “2m” isn’t valid code. But (2*m) would be.

Right, but you have to follow the spelled out instructions a bit more carefully. Tom has pointed you to the bug: there are 3 terms in the sum and they should all be different.

Hello,

Thank you for your reply. I will take note of not posting the code, just the error next time. I am sorry for my mistake. It was a stupid typo error and I should have caught it. I will make sure to be more careful next time. Thanks again.