Recursion error on print ("sigmoid([0, 2]) = " + str(sigmoid(np.array([0,2])))) sigmoid_test(sigmoid) I don't know how o deal wit it. please help

RecursionError Traceback (most recent call last)
in
----> 1 print ("sigmoid([0, 2]) = " + str(sigmoid(np.array([0,2]))))
2
3 sigmoid_test(sigmoid)

in sigmoid(z)
15 # s = …
16 # YOUR CODE STARTS HERE
—> 17 s=sigmoid(z);
18
19 # YOUR CODE ENDS HERE

… last 1 frames repeated, from the frame below …

in sigmoid(z)
15 # s = …
16 # YOUR CODE STARTS HERE
—> 17 s=sigmoid(z);
18
19 # YOUR CODE ENDS HERE

RecursionError: maximum recursion depth exceeded

Looks like you are calling the function sigmoid() from the inside function sigmoid(). Which means it is acting like sigmoid(sigmoid(sigmoid(sigmoid(…) until recursion depth limit is exceeded

You need to implement the calculation of the value of sigmoid of an input and assign that to s