W2 A2 | Implementation of Forward and Backward propagation

Please help! I am stuck in implementing Forward and Backward propagation in python. I tried implementing the following codes but in vain. I will attach the image below.

{moderator edit - solution code removed}

Hi @Thombson_Chungkham,

A=σ(w^TX+b) is written in Mathematics form. What this means is to call the sigmoid function with the result of the dot product operation of two matrices, w^T and X, that has been added with b.
So in code, it would look like this
Where np.dot() is the numpy library function for the dot product operation.

Hello, Thombson.

Also, please remove the code. It’s against the honor code.